We want to be able to save a credit card without doing a real payment.
We added a new method in the payment backend to initiate this procedure. The other method that has been implemented is to create the credit card for the owner of the order, and we create it with the response from the payment backend (token id, brand, expiration dates...).
Proposal
[x] Create a new method in BasePaymentBackend class save_credit_card
[x] Create a new method in DummyPaymentBackend class save_credit_card + create a private class method to create or update the credit card for the order's owner.
[x] Create a new method in PayplugBackend class save_credit_card + create a private class method to create or update the credit card for the order's owner.
Purpose
This PR solves this issue.
We want to be able to save a credit card without doing a real payment.
We added a new method in the payment backend to initiate this procedure. The other method that has been implemented is to create the credit card for the owner of the order, and we create it with the response from the payment backend (token id, brand, expiration dates...).
Proposal
save_credit_card
save_credit_card
+ create a private class method to create or update the credit card for the order's owner.save_credit_card
+ create a private class method to create or update the credit card for the order's owner.