A user should be allowed to add new credit card by tokenizing his credit card through the payment backend. It allows the user to have multiple credit cards to manage his purchases.
Proposal
[x] add new endpoint in CreditCardViewSet to tokenize a credit card.
[x] add tokenize_card method into the dummy payment backend.
[x] update dummy method handle_notification to save the credit card that has been tokenized
[x] add tokenize_card method into the base payment backend.
[x] add test suite
[x] complete order tests classes (dummy payment backup, base payment backup)
Purpose
This PR solves this issue
A user should be allowed to add new credit card by tokenizing his credit card through the payment backend. It allows the user to have multiple credit cards to manage his purchases.
Proposal
tokenize_card
method into the dummy payment backend.handle_notification
to save the credit card that has been tokenizedtokenize_card
method into the base payment backend.