Introduction to PhonePe Payment Link


PhonePe Payment Links provide a fast, reliable, and simple way to collect payments without requiring a dedicated website or mobile application. You can create a unique payment link and send it to your customers through SMS, email. When they open the link, they are taken to a secure payment page where they can complete the transaction using their preferred method.

Supported Payment Methods:

  • UPI
  • Credit/Debit Cards
  • Net Banking

These links are created with a fixed amount. You decide the value at the time of generating the link, and the customer will not be able to modify it. You can also set an expiry time or restrict the link to be used only once, giving you complete control over how the link is accessed.

Use the environment URLs below to integrate and test your API calls. The Sandbox environment is intended for testing and validation, while the Production environment should be used once your integration is live. Make sure to switch the base URL based on the environment you’re working in.

EnvironmentAPI
Sandboxhttps://api-preprod.phonepe.com/apis/pg-sandbox/<Endpoint>
ProductionAuthorization API: https://api.phonepe.com/apis/identity-manager/<Endpoint>
Other APIs: https://api.phonepe.com/apis/pg/<Endpoint>

📘 Test Before Production!


To ensure a smooth integration, please integrate with the Test environment first and then move to production.

Here is a quick reference to the key API endpoints used in the Payment Link flow. Each API serves a specific purpose, from starting a transaction to processing refunds and checking payment statuses. Use the table below to identify which endpoint to call at each stage of the payment journey.

APIMethodEndpoint
AuthorizationPOST/v1/oauth/token
Create APIPOST/paylinks/v1/pay
StatusGET/paylinks/v1/{merchantOrderId}/status
CancelPOST/paylinks/v1/{merchantOrderId}/cancel
NotifyPOST/paylinks/v1/notify
RefundPOST/payments/v2/refund 
Refund Status APIGET/payments/v2/refund/{merchantRefundId}/status

Now that you’re familiar with the environment setup and APIs, you can start the integration process. The next section will walk you through the Integration Steps to help you build the the Payment Links.

Is this article helpful?