Przejdź do głównej zawartości

PaymentCreateInput

Input for paymentCreate — initiates a payment for an order created by cartComplete. Idempotent on the order: a second call returns the existing still-valid session.

input PaymentCreateInput {
acknowledgements: [PaymentAcknowledgementInput!]
cancelUrl: URL
orderId: ID!
returnUrl: URL
}

Fields

PaymentCreateInput.acknowledgements ● [PaymentAcknowledgementInput!] list input

Payment acknowledgements the buyer affirmed (e.g. accepting the Przelewy24 regulation). Send only the ones the buyer checked. Optional — when omitted, gateways that present their own consent step collect it; a method with a STOREFRONT_REQUIRED acknowledgement returns ACKNOWLEDGEMENT_REQUIRED if not accepted.

PaymentCreateInput.cancelUrl ● URL scalar

URL the gateway returns the buyer to after they cancel the payment. Must point to a verified domain of the shop.

PaymentCreateInput.orderId ● ID! non-null scalar

ID of the order to pay for — cartComplete.order.id.

PaymentCreateInput.returnUrl ● URL scalar

URL the gateway returns the buyer to after a successful payment. Must point to a verified domain of the shop; rejected with RETURN_URL_INVALID otherwise.

Member Of

paymentCreate mutation