Skip to main content

capturePaypalCheckout

Captures an approved PayPal order after the hosted checkout redirects back, completes the checkout (wallet credit / access grant), and returns the updated Checkout. PayPal webhooks remain a backup for idempotent reconciliation if they arrive later. Requires an authenticated user who owns the checkout.

capturePaypalCheckout(
orderId: String!
idempotencyKey: String
): Checkout!

Arguments

capturePaypalCheckout.orderId ● String! non-null scalar

PayPal order id returned on the approval redirect (the token query parameter). Identifies the approved order to capture.

capturePaypalCheckout.idempotencyKey ● String scalar

Optional idempotency key. Recommended for retries: replaying with the same key and identical arguments returns the first result instead of re-applying; the same key with different arguments returns IDEMPOTENCY_CONFLICT. Keys expire after 24h.

Type

Checkout object