Summary
When the customer tries to add a new credit card in the My account section of stores whose acquires use 3DS authentication (V1 or V2), the system will return the error message There was an error while trying to save the card.
This error occurs because the credit card has not been validated. To validate the card, it first needs to be associated with a payment condition. When this is done, the card will be charged 1.50 USD. The transaction will be canceled next and the card will be validated.
In stores whose acquirers use 3DS authentication, this transaction will activate the authentication process and the validation of the card will be requested. The validation can't be processed because it's not a purchase and the 3DS authentication step known as "challenge" can't run to complete the steps. This is the reason for the error mentioned above when saving a card.
Simulation
If you want to simulate the steps that lead to the error, follow the instructions below:
- Go to the VTEX Admin.
- Configure an acquirer that uses 3DS authentication. For V1, acquirers must set it up. For V2, see more details in our article Setting up 3DS 2 authentication flow.
- Configure a credit card payment method — such as Mastercard, Visa, American Express, etc. — to be processed by the acquirer.
- Go to your store's home page.
- Log in by entering your email address and password.
- Click on My account.
- Go to the Credit cards section.
- Click on Add new card.
- Fill in all the fields and click on Save new card.
- This process will return an error.
Workaround
You can solve this error by adding a payment condition for a credit card associated with an acquirer that does not use 3-D Secure (V1 or V2).