After completing Integration, send a testing URL/App with the PhonePe Integration team for the sanity check. Once verified in UAT, the UAT Sign-off will be provided. Then, the Production credentials will be shared by PhonePe.
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 “”
val result = PhonePeKt.init(
context = this,
merchantId = "MID",
flowId = "FLOW_ID",
phonePeEnvironment= PhonePeEnvironment.RELEASE,
enableLogging = false,
appId = null
)
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)