Skip to content

Commit

Permalink
Merge 78070b9 into 0a2aa5e
Browse files Browse the repository at this point in the history
  • Loading branch information
xzzy committed Aug 10, 2020
2 parents 0a2aa5e + 78070b9 commit 7b2eb54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ledger/checkout/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def handle_payment(self, order_number, total, **kwargs):
if method == 'card':
try:
#Generate Invoice
logger.info('Order #%s: doInvoice with method: '+str(method), order_number)
invoice = self.doInvoice(order_number,total)
# Swap user if in session
if self.checkout_session.basket_owner():
Expand Down Expand Up @@ -335,6 +336,7 @@ def handle_payment(self, order_number, total, **kwargs):
raise
else:
#Generate Invoice
logger.info('Order #%s: doInvoice with method: '+str(method), order_number)
self.doInvoice(order_number,total)

def submit(self, user, basket, shipping_address, shipping_method, # noqa (too complex (10))
Expand Down
2 changes: 2 additions & 0 deletions ledger/payments/bpoint/BPOINT/Requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def build_url(self):
return self.url

def submit(self):
logger.info('bpoint transaction submitted')
req = RequestSender(self.base_url)
return req.send(self)

Expand Down Expand Up @@ -95,6 +96,7 @@ def get_payload(self):
return {"TxnReq" : payload}

def submit(self):
logger.info('bpoint transaction preparing:')
result = Request.submit(self)
logger.info('bpoint transaction response: %s', result)
return TransactionResponse(result)
Expand Down

0 comments on commit 7b2eb54

Please sign in to comment.