Checking access…

Skip to main content
Audience: Consumers, CCG Platform Engineers

Make a Payment Through the UI

Checkout UI Β· Widget v3

Let customers complete the payment in your checkout

Create a session, launch the Hosted popup or Embedded widget, then confirm the result. The widget handles payment entry and submission.

Follow the payment steps
Using the API directly?

If your server creates the payment without the widget, start with the Payments API guide.

Explore Payments API

Before you start​

Make the payment​

1. Create a checkout session​

From your backend, call Create Session with the chosen value in config.modes and the payment details. Follow Create a Session for request fields, authentication, and the response.

Keep the returned checkoutSessionId for Embedded, or hostedUrl for Hosted. Keep the returned session status url for completion checks.

2. Launch the widget​

The customer chooses or enters an available payment method and submits the payment in the widget. Available methods and channels depend on your merchant and session configuration.

3. Confirm the outcome​

Use the session status URL returned by Create Session to check completion. For Embedded, handle the widget's onSuccess and onError callbacks; see Embedded Experience β€” callbacks. For Hosted, poll the session status URL as shown in Hosted Experience.

If you need the underlying payment's status or details, use Get Payment by ID when you have the paymentId, or Get Payment by Merchant Transaction ID when you have your merchantTransactionId. See Payment Lifecycle for the meaning of each payment status.

After authorization​

If your payment uses an authorization and capture flow, complete it from your backend using Capture a Payment. If the authorized payment should not proceed, use Cancel a Payment. These are separate Payments API operations.