Introduction to Website Checkout
Integrate PhonePe’s Standard Checkout to accept secure payments on your website. Redirect users to our hosted, high-converting payment page supporting UPI, Cards, and NetBanking.
User Journey
The following user journey illustrates the complete payment lifecycle to help you understand the integration flow clearly.

Prerequisites
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_IDandClient_Secretfrom your PhonePe Business Dashboard. - Developer basics: It helps to have a basic grasp of REST APIs, server-side requests, and a API testing tool.
Environments
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.
https://api.phonepe.com/apis/identity-manager/<Endpoint>https://api.phonepe.com/apis/pg/<Endpoint>API Endpoints
| API | Method | Endpoint |
| Authorization | POST | /v1/oauth/token |
| Create Payment | POST | /checkout/v2/pay |
| Order Status API | GET | /checkout/v2/order/{merchantOrderId}/status |
| Refund | POST | /payments/v2/refund |
| Refund Status API | GET | /payments/v2/refund/{merchantRefundId}/status |
Checkout Page
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.


What’s Next?
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.