In this FAQ, we will cover the following topics:
1. Finding your Stripe Publishable and Secret Keys
2. Exiting Test Mode on Stripe and Switching to Production
3. The Card is Valid, but the Transaction Fails
4. Everything Looks Correct, but the Stripe Transaction Fails
1. Finding your Stripe Public and Secret Keys
In the Stripe dashboard, on the right.
2. Exiting Test Mode on Stripe and Switching to Production
To exit test mode on Stripe (live payments) and go live (live payments), toggle off the “View test data” switch in the top right corner of the dashboard. You must then replace the test API keys (pk_test_...) with the live keys (pk_live_...) in your site’s settings. [1, 2, 3]
Key steps to switch to live mode:
- Disable test mode: in the Stripe Dashboard, click the “View test data” button to switch to “Production” mode.
- Activate the account: make sure your account is fully activated (business information provided, email verified).
- Update the APIs: go to Developers > API Keys to retrieve your production keys (Live Keys).
-
Site configuration: replace the old test keys with these new keys in your store (WordPress, Shopify, your code, etc.). [1, 2, 3, 4]
3. The Card is Valid, but the Transaction Fails
After entering the card information, click Pay Now.
If the card is valid but the transaction fails and displays the following message: “The card information is invalid or the payment has been declined,” the system may still be in test mode.
If the word “Test” appears in the key, this means the account is operating in a test environment and actual transactions cannot be processed. Turn off the “View test data” toggle in the top right corner of the dashboard.
4. Everything Looks Correct, but the Stripe Transaction Fails
If a transaction via Stripe fails, the cause isn't necessarily related solely to the card or the connection. In some cases, the transaction is declined because the amount charged is less than the minimum accepted by the platform. For the payment to be processed correctly, the transaction amount must be at least $1. Check the total invoice amount before trying to process the payment again.
Comments
Please sign in to leave a comment.