If a customer has successfully added a valid credit card using the PayLeap - Card On File Method, but decides at the next checkout to add another credit card for future use, the system will delete the previously entered card if they enter / mistype the new Credit Card info.
In order to reproduce this, go through checkout, add a card using the PayLeap - Card On File Method and complete the checkout. Go through the checkout process again, and add a new card under the PayLeap - Card On File method. Purposely put in a bad Credit Card Number. The card entered on the previous checkout will be removed from the system leaving you with no cards on file.
The patch attached reviews the message returned by the commerce_payleap_card_profile_request() method, and deletes all cards only if a customer profile is no longer valid. This patch also includes messages to notify the user about the error.
Do we need to update the tests for this method?
| Comment | File | Size | Author |
|---|---|---|---|
| CardOnFile_DeletingValidCardsOnBadCCSubmission-0.patch | 1.94 KB | MD3 |