Skip to main content

Redirect flow

Redirect customers to a hosted checkout page.
1

Create a payment

Call POST /api/v1/payments with your payment details, including successRedirectUrl and failRedirectUrl in the request body.
2

Extract the payment URL

From the response, get the link.url field.
3

Redirect customers

Redirect customers to the link.url to complete the payment.
4

Handle the redirect

After payment completion, customers are automatically redirected to your successRedirectUrl or failRedirectUrl.

Embedded checkout

Embed checkout directly in your site using the <coinbase-payment> web component. See the Embedded UI guide for setup, events, and theming options.