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)
iOS SDK
- Initialize the PhonePe SDK with the environment as .production
- Make sure the enableLogging flag is set to False in Production.
let ppPayment =
PPPayment(environment: .production,
merchantId: "MERCHANT_ID",
enableLogging: false)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!