Skip to main content
POST
Preview Payment

Preview Payment

Returns a detailed breakdown of payment charges without creating a payment intent. Use this to show customers the final amount including fees before they confirm payment. Requires cart_unique_id from /cart/validate.

Request

string
required
Your API key

Body Parameters

integer
required
Primary product ID in the cart
string
required
Cart ID from /cart/validate response
string
required
Customer’s email address
string
required
Customer’s first name
string
required
Customer’s last name
string
required
Currency code (must match cart validation)

Response

Use Case

Call this endpoint after /cart/validate to show customers a complete breakdown before they commit to payment:

Errors

Example