createPaymentMethod
MUTATIONThis mutation will create a payment method token for a payor. The payment method token can be used to create a payment method for a merchant.
Arguments
payment_methodRequired
The payment method input object. Refer to the PaymentMethodInput docs for more info.
merchant_uidRequired
The Pay Theory unique identifier assigned to the merchant that the payment_method_token belongs to.
skip_validation
A boolean flag indicating whether to skip the validation of the payment method. Defaults to false if not passed in.
Response
PaymentMethodToken
address_line1
The first line of the billing address.
address_line2
The second line of the billing address.
bank_account_type
The type of bank account.
Values
BUSINESS_CHECKINGBUSINESS_SAVINGSPERSONAL_CHECKINGPERSONAL_SAVINGS
bank_code
The bank code of the bank account if payment_type is ACH.
barcode_id
The barcode id of the payment method token if payment_type is CASH.
card_brand
The brand of the card if payment_type is CARD.
card_type
The type of card if payment_type is CARD.
Values
BUSINESS_CREDITBUSINESS_DEBITCREDIT_CARDDEBIT_CARDPREPAID_CARD
city
The city of the billing address.
country
The country of the billing address.
cvv_status
The CVV status.
Values
MATCHNO_MATCHUNKNOWN
exp_date
The expiration date of the card if payment_type is CARD. Format: MMYY
full_name
The name on card or bank account.
is_active
Indicator for if payment method is active. If false the payment method cannot be used to process new transactions.
issuing_country_code
The issuing country code of the country that issued the card or that the bank account was opened in.
last_four
The last four digits of the card or bank account number.
merchant_uid
The Pay Theory unique identifier assigned to the merchant that the payment_method_token belongs to.
metadata
Any additional data that was stored with the payment method token.
payment_method_id
The unique payment method id.
payment_type
The type of payment method. It can be one of the following: CARD, ACH
Values
ACHCARDCASH
payor
The payor object. Refer to the Payor docs for more info.
postal_code
The postal code of the billing address.
region
The region of the billing address.
wallet_type
The type of wallet that the payment method token is stored in.
Values
APPLE_PAYCLICK_TO_PAYGOOGLE_PAYPAZESAMSUNG_PAYVISA_STAGED