CreatePaymentModel
Payment details for an order you are creating yourself.
Send the card fields together with paymentOption.
Card data reaching this endpoint passes through your systems, which puts you in PCI DSS scope.
If you would rather not take that on, hand the customer to the planCheckoutUrl returned by a
plan search instead and Chaiz collects payment.
- paymentType: string · PaymentOptionenum
Option requiredThe payment term, which also selects the price. Always required. Values: 0 = monthly installments, 2 = pay in full.
The enum member names do not read the way you would expect, so use the numbers above. Which options are available depends on your account and on the plan's duration; a value your account does not allow is rejected.
values- Default
- Half
- Full
- accountType: string | null
Number min length:13max length:16Format: credit-cardCard number, 13 to 16 digits, no spaces or dashes. In UAT use
4111111111111111(the standard Visa test number). - creditType: string | null
Card Expiration Date String Card expiration date as
MM/YYYY. Note the four-digit year. Must be a valid future date. - cvcType: string | nullmin length:3max length:5
Pattern: ^\d+$Card security code (CVV/CVC), 3 to 5 digits.
- methodType: string · PaymentMethodTypeenum
Type Possible values: None (0) - None, VISA (1) - Visa, MASTERCARD (2) - Master Card, AmericanExpress (3) - American Express, Discover (4) - Discover, ACHSavings (5) - ACH Savings, ACHChecking (6) - ACH Checking
values- None
- V
I S A - M
A S T E R C A R D - American
Express - Discover
- A
C H Savings - A
C H Checking