Marketplace API / Types
Payment
ObjectA single payment attempt for a checkout. Retrying after a decline creates a new payment for the same checkout and order.
Requires a client key with one of these scopes:checkout:payments:manageThe requirement applies to every field of Payment unless that field declares its own scopes.
type Payment implements NodeFields
| Field | Type | Description |
|---|---|---|
checkout | Checkout! | The checkout associated with this payment. The checkout's status remains the authority for its lifecycle. |
clientSecret | String | Client secret for completing a 3D Secure challenge. Available only while this is the current payment and the checkout is awaiting the challenge. Re-read Checkout.currentPayment after a retry. |
createdAt | DateTime! | When this attempt was created. |
failureMessage | String | Buyer-facing description of why this attempt failed — a card decline names the decline. Null unless the attempt failed on the Stripe rail. Safe to render to the buyer verbatim. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
paymentServiceProvider | PaymentServiceProvider! | Which payment service provider is processing this attempt. |
status | PaymentStatus! | Current status of this attempt. |
stripePaymentMethodType | StripePaymentMethodType | How this attempt is being paid on Stripe. Null when Stripe is not processing it, and until the attempt reaches Stripe. |