Skip to main content
This guide walks you through accepting a card payment in the sandbox environment using the direct API integration.
Prerequisites
  • A UQPAY sandbox account with Global Acquiring enabled
  • An API token from the Access Token endpoint
1

Create a Payment Intent with a card payment method

Send a request to the Create Payment Intent API with a test card number. This creates the payment intent and processes the payment in a single call.
2

Check the response

A successful payment returns intent_status: "SUCCEEDED" immediately:
Key fields to note:
  • intent_status — the overall payment result. See Core concepts for the full status reference.
  • payment_intent_id — unique identifier for this payment, prefixed with PI
  • latest_payment_attempt.attempt_id — the specific attempt, prefixed with PA
3

Verify via the Retrieve API (optional)

You can query the payment status at any time:

What’s next

Core concepts

Learn about Payment Intent and Payment Attempt lifecycle and status transitions.

Direct API integration

Build a complete checkout flow with payment method handling and 3DS authentication.

Testing in sandbox

Full list of test cards, e-wallet sandbox setup, and go-live checklist.

Webhooks

Set up webhook notifications to receive real-time payment status updates.