Skip to main content
Phone Pe Business Logo

Introduction to Website Checkout

PhonePe’s Standard Checkout API provides a secure and easy way to integrate a comprehensive payment solution into your website. It allows you to accept all major payment methods, including UPI, Credit/Debit Cards, and Net Banking. This integration ensures safe transactions by maintaining PCI DSS compliance by default, all while offering your customers a smooth, reliable, and non-redirective checkout experience.

To integrate PhonePe Payment Gateway into your website using the API integration method, here’s an overview of the user journey and checkout pages across different platforms.

You can fork the PhonePe Postman Public Workspace to explore and try out the Standard Checkout APIs.

The following user journey illustrates the complete payment lifecycle to help you understand the integration flow clearly.

Before you start the integration process, ensure you have:

  • An active account: You’ll need a PhonePe Business account to get started. If you aren’t registered yet, you can Sign Up Here.
  • Your keys: Have your Client_ID and Client_Secret from your PhonePe Business Dashboard.
  • Developer basics: It helps to have a basic grasp of REST APIs, server-side requests, and a API testing tool.

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 are working in.

https://api-preprod.phonepe.com/apis/pg-sandbox/<Endpoint>

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

APIMethodEndpoint
AuthorizationPOST/v1/oauth/token
Create PaymentPOST/checkout/v2/pay
Order Status APIGET/checkout/v2/order/{merchantOrderId}/status
RefundPOST/payments/v2/refund
Refund Status APIGET/payments/v2/refund/{merchantRefundId}/status

The checkout pages are optimized for both desktop and mobile views. Users can complete payments using UPI ID, NetBanking, or Cards on either view, while QR-based payments are available only on the desktop view. Below is a preview of the checkout experience on both desktop and mobile.

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 checkout experience seamlessly into your website.

Is this article helpful?