Guide

FAQ

Quick answers to common questions.

Do I need to handle PCI compliance?

No. Card details never touch your server. The customer enters their card on our hosted checkout page. You stay out of PCI scope.

What currencies do you support?

Only 2-decimal currencies, such as USD, EUR and XCG (Caribbean Guilder). Currencies are enabled per MerchantOrg, separately for test and live, based on its gateway setup. Your account manager will configure this.

A 0- or 3-decimal currency, such as JPY, KWD, IQD or LYD, returns 400 UNSUPPORTED_CURRENCY_PRECISION when you create a Checkout Session or PaymentIntent, when a payment starts and when it is confirmed. A 2-decimal currency that is not enabled returns 400 CURRENCY_NOT_SUPPORTED when you create a Checkout Session, when a payment starts and when it is confirmed.

What payment methods are available?

Credit and debit cards, plus local payment methods. Your enabled methods depend on your merchant configuration.

How do amounts work?

Amounts are integers in the smallest currency unit. Only 2-decimal currencies are supported, so 1000 means 10.00.

You want to chargeYou send
$50.00 USD"amount": 5000
€12.50 EUR"amount": 1250
10.00 XCG"amount": 1000

How long do checkout sessions last?

Default: 30 minutes. You can set expires_in from 5 minutes to 24 hours.

What happens if a session expires?

The checkout_session.expired event fires. The customer sees an expiry message. You can create a new session for them to try again.

Can I test without real money?

Yes. Use your test API keys (toggle the Test/Live switch above). Test mode processes everything through the sandbox — no real charges. Card numbers and their outcomes are on Test cards.

What does Idempotency-Key do?

If your request fails mid-flight (network timeout, etc.), you can safely retry with the same Idempotency-Key. We'll return the original response instead of creating a duplicate session. A 4xx or 5xx response isn't replayed: the request runs again.

Use a UUID. One per checkout session creation.

My webhook didn't arrive. Now what?

  1. Wait 5 minutes — retries are in progress
  2. If still nothing, poll GET/v1/payment-intents/{pi_id} to check the status
  3. Check that your webhook endpoint returns a 2xx and starts responding within 5 seconds

See Webhooks for details.

What does client_secret do?

client_secret is the token CX Pay's payment UI uses to authenticate payment operations for that checkout. It is different from your server-side HMAC API secret.

For the supported checkout integrations, CX Pay handles this token automatically:

  • Hosted checkout: redirect the customer to the session's returned url.
  • Embedded payment form (beta): pass the session's id to CxPay.embed({ session: session.id, view: "form", ... }) — do not pass client_secret as session.

Both use the payment SDK internally. You do not need to pass client_secret yourself for either flow. Treat it as sensitive: do not put it in logs, analytics, or support messages.

Can I update a session after creating it?

Only its metadata and payment_methods, while it's still open. The amount, line items, return and cancel URLs and expiry are fixed when you create it; sending them returns 400 CHECKOUT_SESSION_FIELD_NOT_UPDATABLE.

If the total changes (a coupon, shipping, tax), cancel the session with POST/v1/checkout-sessions/:id/cancel and create a new one with the new amount. A new session always charges exactly what it was created with.

What if the customer's card requires 3DS?

We handle it. The customer sees the 3DS challenge on our hosted page. You don't need to do anything — the Payment Intent moves through requires_action → processing → succeeded automatically.

Still have questions? Reach out to your account manager or email us. We're here to help you go live.

Powered by CX Pay