Payment Handles
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.
Connect a customer handle
client.paymentHandles.connect(stringhandle, RequestOptionsoptions?): PaymentHandleConnection { connect_id, handle, status }
POST/v3/payments/handles/{handle}/connect
Submit a customer's one-time code
client.paymentHandles.verify(stringhandle, PaymentHandleVerifyParams { code, connect_id } body, RequestOptionsoptions?): PaymentHandleConnection { connect_id, handle, status }
POST/v3/payments/handles/{handle}/verify
Get a handle's connection status
client.paymentHandles.connection(stringhandle, RequestOptionsoptions?): PaymentHandleConnection { connect_id, handle, status }
GET/v3/payments/handles/{handle}/connection
Revoke a handle's connection
client.paymentHandles.revoke(stringhandle, RequestOptionsoptions?): PaymentHandleConnection { connect_id, handle, status }
DELETE/v3/payments/handles/{handle}/connection