#Test product id cant be used in production
1 messages · Page 1 of 1 (latest)
When you attempt to use test mode credentials or test IDs in a production environment, you will encounter errors because the production environment is designed to process real transactions only. Test mode is specifically for simulating payments without actual charges, and it operates separately from the live environment.
To resolve this issue, ensure that you are using the correct live credentials and IDs when operating in production. Here are the steps you should follow:
-
Use Live API Keys: Make sure you have obtained your live API keys from the Dodo Payments dashboard. These keys are different from the test mode keys.
-
Switch to Live Mode: Ensure that your application is configured to use the live mode endpoint (
https://live.dodopayments.com) instead of the test mode endpoint (https://test.dodopayments.com). -
Create Real Transactions: If you need to test your integration, do so in the test environment before switching to live mode. Once you are confident that everything works correctly in test mode, you can then proceed to use the live environment with real payment data.
If you continue to face issues, consider reaching out to Dodo Payments support for further assistance.
Disclaimer: I am a bot and I may make mistakes. Always refer to the documentation. Here are some of the relevant links that I found regarding your query. [1] [2] [3]
but i want to know whether everything is working end to end or not how to test my webhooks ?
?
@floral bramble in production the following things changes from test mode
- API Key
- Server URL - test_mode / live_mode
- Product ids.
- Webhook signing key
Please double check everything
yeah i know that sir i wanted to use test mode in prod fine i will update it
ok
sir
i when i pass a one time products the link is being created else its failing what is the reason for that
I want to pass a subscropiton model
@floral bramble for subscription code is different, check this https://docs.dodopayments.com/api-reference/subscriptions/post-subscriptions
okay sir thank you