> For the complete documentation index, see [llms.txt](https://docs.pgecom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pgecom.com/api-endpoint/payment/pg-pay.md).

# PG Pay

You can now accept Payment on your website with PG Pay which allows buyer to purchase your product with their PGecom balance

{% embed url="<https://youtu.be/hF3emAEIB0o?si=iVs8-THCSBvDP8Mb>" %}
PGPay Integration
{% endembed %}

Once you create your PGPay Payment request, you'll receive a redirect URL in the response

<figure><img src="/files/EuK5mEcCcwQI6xQQ2BBG" alt=""><figcaption><p>redirect url</p></figcaption></figure>

Once you redirect the user, they'll view something like this to complete their purchase

If you include a phone in the payload, it will automatically fill in the input form

<figure><img src="/files/tzmTppWqAOrhiFXOlGTw" alt=""><figcaption><p>PG Pay Checkout Flow - User not logged in</p></figcaption></figure>

The pg pay integration will automatically detect if the user is already logged in and make the checkout process even easier to complete the purchase

<figure><img src="/files/9nS6NpZDWwn9uB5iZpJX" alt=""><figcaption><p>PG Pay Checkout Flow - User already logged in</p></figcaption></figure>

The moment you create a checkout session for a customer

PGPay will start tracking that transaction until its completion

It will also register the customer information for future targeting

<figure><img src="/files/85UNFNvkZwPoNbvTDJrs" alt=""><figcaption><p>PG Pay Pending and Complete transaction</p></figcaption></figure>

I hope you enjoy the PG Pay integration as much as we enjoy building it 🎉
