This article explains why a test credit card fails in a Sandbox environment with PayPal APIs.
Affected products and versions
- Adobe Commerce 2.4.0 - 2.4.4 , all deployment options, with Payment Services
When using a test Visa credit card
4111 1111 1111 1111 from PayPal, sometimes it fails due to PayPal fraud policies with the following error::
Error happened when processing the request. Please try again later.
This error is displayed when PayPal flags a specific test credit card number for fraud. This happens because it is a test credit card number used by everyone around the world testing with PayPal APIs.
Use another test credit card. To generate mock credit cards you can use for testing:
- Go to the PayPal Developer Portal Credit Card Generator page.
- Log in to the PayPal Developer Portal Dashboard.
- Generate a test credit card.