createPayment
Creates a payment for the current account and returns it. When paymentMethod or paymentToken is provided, attempts direct confirmation (saved cards, digital wallets) and may return a nextAction for 3DS. Otherwise returns a payment with a hosted-page redirect: its nextAction.redirectUrl is the payment link (the Pay By Link page of the dashboard). For PAYOUT transactions the account balance is checked and reserved. Arguments: - input: The payment to create.
createPayment(
input: CreatePaymentInput!
): Payment
Arguments
createPayment.input ● CreatePaymentInput! non-null input
Type
Payment object
A payment as the payment mutations return it (createPayment, refundPayment, capturePayment, cancelPayment and the send mutations). Amounts are integers in the smallest unit of the currency: cents for EUR, whole yen for JPY. To read a payment later, use charge.
¿Te ha resultado útil esta página?