Payments
Let an agent pay on a customer’s behalf with a single-use virtual card. Connect a customer once, then create a payment — a virtual card is minted scoped to that purchase and the card details are handed back for checkout.
Create a payment (agent pays on a customer's behalf)
client.payments.create(PaymentCreateParams { amount_cents, currency, handle, 3 more } body, RequestOptionsoptions?): Payment { id, amount_cents, approval_url, 5 more }
POST/v3/payments
Get a payment
client.payments.retrieve(stringpaymentID, RequestOptionsoptions?): Payment { id, amount_cents, approval_url, 5 more }
GET/v3/payments/{paymentId}
Cancel a payment
client.payments.cancel(stringpaymentID, RequestOptionsoptions?): Payment { id, amount_cents, approval_url, 5 more }
POST/v3/payments/{paymentId}/cancel
Get a payment's card-reveal handoff
client.payments.credentials(stringpaymentID, RequestOptionsoptions?): PaymentCredentialsResponse { handoff }
GET/v3/payments/{paymentId}/credentials