Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Logging for Payment issue #807

Merged
merged 1 commit into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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