How to Go-Live
After completing the integration, share a testing URL or app with the PhonePe Integration team for a sanity check. Once the integration is verified in UAT, a UAT sign-off will be provided, after which PhonePe will share the Production credentials.
Ensure the following steps while migrating from UAT to Production for Go Live.
Step 1: Replace the Host URLs
Change the Host Endpoint from UAT to Production as given below.
| APIs | Production Host URLs |
|---|---|
| Auth Token API | https://api.phonepe.com/apis/identity-manager |
| Other APIs (Payment, Status, Refund) | https://api.phonepe.com/apis/pg |
Step 2: Replace the Client ID and Secret Key
Replace the UAT Client Id and Client Secret Keys with the Production Client Id and Client Secret Keys to generate the Auth Token.
Step 3: Generate the Production Auth Token
Generate the auth token for production by hitting the Auth Token API and use it with all the Payment related APIs (Payment Initiation, Order Status, Refund)
Android SDK
- Initialize the PhonePe SDK with the environment as PhonePeEnvironment.RELEASE
- Make sure the enableLogging flag is set to False in Production.
- appId is optional and can be passed as nil or “”
PhonePeKt.init(Context context,
String merchantId,
PhonePeEnvironment phonePeEnvironment,
Boolean enableLogging,
String appId)By following these steps to update your host URLs, keys, and SDK environment, you will successfully transition your integration from the UAT sandbox to the live Production environment.
You are now ready to offer your customers a seamless and secure payment experience with PhonePe.
Welcome aboard!