Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.
API Host and Endpoint
Copied !
Host
Environment
Http Method
API Host URL
Sandbox
POST
https://api-preprod.phonepe.com/apis/pg-sandbox
Production
POST
https://api.phonepe.com/apis/pg
Endpoint
/payments/v2/sdk/init – Endpoint is common for sandbox and production.
Pass this to the PhonePe SDK via the merchant app.
expireAfter
Long
TTL of savedInstrumentsToken in seconds
Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.
API Host and Endpoint
Copied !
Host
Environment
Http Method
API Host URL
Sandbox
POST
https://api-preprod.phonepe.com/apis/pg-sandbox
Production
POST
https://api.phonepe.com/apis/pg
Endpoint
/payments/v2/sdk/init – Endpoint is common for sandbox and production.
Pass this to the PhonePe SDK via the merchant app.
expireAfter
Long
TTL of savedInstrumentsToken in seconds
Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.
API Host and Endpoint
Copied !
Host
Environment
Http Method
API Host URL
Sandbox
POST
https://api-preprod.phonepe.com/apis/pg-sandbox
Production
POST
https://api.phonepe.com/apis/pg
Endpoint
/payments/v2/sdk/init – Endpoint is common for sandbox and production.
Pass this to the PhonePe SDK via the merchant app.
expireAfter
Long
TTL of savedInstrumentsToken in seconds
Merchant’s backend should call this API to fetch the savedInstrumentsToken that must be passed to the SDK to fetch the saved instruments of the PhonePe user.
API Host and Endpoint
Copied !
Host
Environment
Http Method
API Host URL
Sandbox
POST
https://api-preprod.phonepe.com/apis/pg-sandbox
Production
POST
https://api.phonepe.com/apis/pg
Endpoint
/payments/v2/sdk/init – Endpoint is common for sandbox and production.