Skip to main content

Overview

The Hosted Payment Page (HPP) solution allows you to accept payments by securely redirecting your customers to a UQPay-hosted checkout page. This ensures sensitive payment data is handled securely by UQPay.

How to use

1. Create a PaymentIntent

Call the Create Payment Intent API to initiate a transaction and get the necessary credentials for the SDK. API Reference: Create Payment Intent

Request Example

Response Example

2. Extract Parameters

From the API response in Step 1, you need to extract the following values to pass to your frontend:
  • client_secret
  • payment_intent_id
  • currency

3. Initialize SDK

On your frontend, install the UQPay Checkout SDK and use the extracted parameters to redirect the user. SDK Package: @uqpay/checkout-sdk
Hosted Payment Page

4. Get Payment Result

You can confirm the final status of the payment using one of the following methods: Configure your server to listen for asynchronous notifications from UQPay. This is the most reliable way to update your order status. Webhook Reference:

Method B: Active Query

Your server can proactively query the status of the PaymentIntent using the API. API Reference: Retrieve Payment Intent