Marketplace API / Types

Payment

Object

A 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:manage

The requirement applies to every field of Payment unless that field declares its own scopes.

type Payment implements Node

Fields

FieldTypeDescription
checkoutCheckout!
The checkout associated with this payment. The checkout's status remains the authority for its lifecycle.
clientSecretString
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.
createdAtDateTime!
When this attempt was created.
failureMessageString
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.
idID!
A globally unique ID. Treat this value as an opaque string.
paymentServiceProviderPaymentServiceProvider!
Which payment service provider is processing this attempt.
statusPaymentStatus!
Current status of this attempt.
stripePaymentMethodTypeStripePaymentMethodType
How this attempt is being paid on Stripe. Null when Stripe is not processing it, and until the attempt reaches Stripe.

Returned by