Skip to main content

CheckoutPaymentInput Input

Description​

Input fields for adding a payment method to a checkout.

Declaration​

input CheckoutPaymentInput {
origin: String!
amount: Float!
charge: JSON
intentId: String
}

Fields​

NameTypeDescription
originString!Origin or type of the payment method, such as card, cash, or giftCard.
amountFloat!Amount to be paid using this payment method.
chargeJSONAdditional payment charge data as JSON, such as transaction details or payment processor information.
intentIdStringIdentifier of the transaction at the payment processor — a Stripe payment intent (pi_…) or a Paypal capture id. Same field the eshop payment flow fills in, so an order reconciles the same way whichever side took the money.