Creates a new payment intent to process a payment.
After the PaymentIntent is created, attach a payment method and confirm API to continue the payment.
Documentation Index
Fetch the complete documentation index at: https://developers.uqpay.com/llms.txt
Use this file to discover all available pages before exploring further.
The API token for login provided by UQPay.
Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts. If omitted or empty, the request is executed using the master account.
More information at Connected Accounts.
A unique identifier (UUID) used to maintain operation idempotency, ensuring that repeated executions of the same operation do not result in unintended effects or duplication. It helps preserve data consistency in the face of network errors, retries, or failures.
The API client id generated by UQPAY
Amount intended to be collected by this PaymentIntent.
"10.12"
Three-letter currency code
"SGD"
The merchant reference id created in merchant's system that corresponds to this PaymentIntent
36Descriptor that will display to the customer. Maximum length is 32.
32The web page URL or application scheme URI to redirect the customer after payment authentication.
1024The payment method details to confirm the PaymentIntent. The PaymentIntent will be confirmed automatically when payment_method is set.
IPv4 or IPv6 address of the device.
Required when payment_method.card.three_ds_action=enforce_3ds.
Optional otherwise.
45"212.121.222.123"
Inline customer details. Supply this on the first PaymentIntent for a shopper to enable Card on File on the hosted payment page. UQPay creates a customer record using these details and returns the resulting customer_id in the response.
Ignored when customer_id is also supplied — see customer_id for precedence rules.
ID of an existing UQPay customer returned by a previous Create PaymentIntent call. Pass this on subsequent payments for the same shopper so the hosted payment page can offer their saved cards.
When both customer_id and customer are supplied, customer_id takes precedence.
Leave empty for guest checkout (the PaymentIntent will not participate in Card on File).
36"cus_asyknf3wlfxhs1s6plamk80i8v"
Purchase order related to this PaymentIntent
Browser information collected for risk and fraud prevention.
Required when three_ds_action=enforce_3ds
Any key-value object. Max length = 512 bytes. This must be valid JSON data.
{ "key1": "value1", "key2": "value2" }Payment intent created successfully
Unique identifier for the PaymentIntent
36"b1c2d3e4-f5a6-b7c8-d9e0-f1a2b3c4d5e6"
Payment amount. This is the order amount you would like to charge your customer.
"10.12"
Three-letter currency code
"SGD"
Status of this PaymentIntent.
REQUIRES_PAYMENT_METHOD, REQUIRES_CUSTOMER_ACTION, REQUIRES_CAPTURE, PENDING, SUCCEEDED, CANCELLED, FAILED Descriptor while creating a PaymentIntent.
255Available payment method types for this PaymentIntent.
Amount that captured from this PaymentIntent.
"10.12"
Snapshot of the customer associated with this PaymentIntent. Returned when customer or customer_id was supplied at creation time. The customer's unique identifier is exposed at the top level as customer_id; the id field is not included inside this object.
ID of the customer associated with this PaymentIntent. Empty for guest checkout.
36"cus_asyknf3wlfxhs1s6plamk80i8v"
Last time at which this PaymentIntent was cancelled. Only present when the PaymentIntent was successfully cancelled, i.e. status is CANCELLED.
"2024-03-01T00:00:00+08:00"
Reason for canceling this PaymentIntent.
"Order cancelled"
PaymentIntent's client secret for browser or app. Returned by PaymentIntent create API or PaymentIntent retrieve API. The provided client_secret is valid for 60 minutes.
"eyJhbGciOiJI***********ujNdZ1DF9CqWEfF1jphxI"
The merchant reference id created in merchant's system that corresponds to this PaymentIntent
36"1bf70d90-9ed0-48ce-9370-9bd7ef6ab9ee"
Any key-value object. Max length = 512 bytes. This must be valid JSON data.
{ "key1": "value1", "key2": "value2" }If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
The web page URL or application scheme URI to redirect the customer after payment authentication.
"https://127.0.0.1:8080/api/v1/callback"
Time at which this PaymentIntent was created.
"2024-03-01T00:00:00+08:00"
Time at which this PaymentIntent reached its final state.
"2024-03-01T00:00:00+08:00"
Last time at which this PaymentIntent was updated or operated on.
"2024-03-01T00:00:00+08:00"
Latest PaymentAttempt that was created under the PaymentIntent.