Skip to content

Commit

Permalink
ledger: fix for token not properly saved against invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayndwiga committed Dec 6, 2016
1 parent 6c397e8 commit 877bb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger/checkout/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def handle_payment(self, order_number, total, **kwargs):
except BpointToken.DoesNotExist:
raise ValueError('This stored card does not exist.')
if self.checkout_session.invoice_association():
invoice.token = token.DVToken
invoice.token = '{}|{}'.format(token.DVToken,token.expiry_date.strftime("%m%y"))
invoice.save()
else:
bpoint_facade.pay_with_storedtoken(card_method,'internet','single',token.id,order_number,invoice.reference, total.incl_tax)
Expand Down

0 comments on commit 877bb9e

Please sign in to comment.