Guide

Getting Started

Choose hosted checkout or the embedded payment form, then connect server-side payment confirmation.

What is CX Pay?

CX Pay is a payment API with hosted checkout and an embedded payment form beta. Your server creates a session; CX Pay hosts the sensitive payment fields and payment flow. Use signed webhooks and server reads to confirm the result before fulfilling an order.

Public beta — confirm the payment methods and integration enabled for your MerchantOrg before going live. The embedded form is a separate 0.0.1 Beta contract.

The 30-second version

Code
11. POST /v1/checkout-sessions → save the session and PaymentIntent against your order
22. Redirect to session.url OR embed the form using session.id
33. Verify the webhook and server payment status → fulfill once

Start with hosted checkout or the embedded payment form. See Customize checkout for supported layout options and merchant-owned styling.

For a runnable integration, clone the public CX Pay API samples. The test-only Node.js sample includes environment setup, an HTTPS tunnel, server-side request signing, an embedded form and payment-status verification.

What you'll need

  • API Key ID and Secret — your account manager will provide these
  • A webhook endpoint — a URL on your server that can receive POST requests
  • Your checkout origin and return URLs — register public HTTPS origins in this MerchantOrg's return domains, separately for test and live. Use an HTTPS tunnel for local testing. Send the webhook URL to CX Pay separately; see the integration URL checklist
  • An order record — persist the session, expected amount/currency and idempotency key; test success, decline, verification and recovery before launch

Next steps

  1. How It Works — understand the payment lifecycle (2 min read)
  2. Authentication — set up HMAC signing
  3. Webhooks — receive payment notifications
  4. Checkout Sessions — the main endpoint you'll use
  5. Declines and card testing — exercise sandbox outcomes before launch

Powered by CX Pay