Ensure a stress-free launch of your app by testing all transaction types you require in the live environment.
If you haven’t tested your app in sandbox environment yet, please visit first the Getting started section before proceeding.
You will need a live account to process live payments. Follow the Activate your account guide.
Note: Once the activation form is completed Judopay makes the necessary changes in your account within 1 business day. We will contact you as soon as you are live.
Point to live environment
In the Judopay gem, find and change the production environment setting from ‘false’ to ‘true’.
Replace your sandbox API token and secret for the live API token and secret in the corresponding lines. Both credentials are located in the dashboard, under the ‘Your apps’ section. Follow our Access token and secret guide if you need help to find them.
Judopay.configure do |config| config.judo_id = 12345 config.api_token = 'your-token' config.api_secret = 'your-secret' # Set to true on production, defaults to false which is the sandbox config.use_production = true end
Test live payments
As per the sandbox, use the live environment for testing before deploying your app to the public. Please follow the testing best practices in the Live testing guide. Here are some highlights:
- Ensure that the SDK is properly configured for live environment as per the Point to live environment section.
- Use always real debit or credit cards. The test cards provided won’t work in this environment.
- Test all the payment scenarios and security features you require to verify the expected behaviour.
Note: As the live environment requires test with real debit or credit cards, we recommend to perform pre-authorizations followed by a void, or regular payments followed by a refund (you can send a refund through the dashboard, from a payment detail page, accessed via ‘History’).
Ready to start accepting payments?
When you are ready to start accepting live payments, please ensure that you have completed all the steps of the integration.
- Completed integration and setup.
- Tested the payment types you require in sandbox.
- Set up Device DNA.
- Set permissions for your app.
- Secured your mobile app.
- Activated your account.
- Pointed to live environment.
- Tested live payments.
Please note: In order to successfully go live and give your customers the best experience possible we advise that you complete all the steps provided in the guides for your chosen integration method, including the ‘Getting started’ and ‘Going live’ guides for your project.
If you need additional support or something didn’t go as expected, please contact us.