ScenarioBen wants to set up automatic payments for his monthly mechanical keyboard subscription from CoolTechGear.com. Before processing any transactions, CoolTechGear.com validates his bank account ending in 9876 to ensure it’s active and properly configured.
Steps
-
Call the validateBankAccount mutation, passing in the required and optional input fields:
Required input Description acceptorIdThe unique, 36 character identifier assigned to the entity providing the goods or services to the customer. Other processors may refer to this as the Merchant ID (MID), Outlet ID, or Customer number. transactionReferenceThe unique transaction identifier created by YOU to distinguish this transaction from another. paymentMethodDetailsThe bank account details or token to be validated. -
The response will include a
validationProviderScorewhich indicates the confidence level in the account’s validity. This score ranges from 0 to 1000, with higher scores indicating greater confidence.
Payment method details
You can provide bank account details in one of two ways:-
Direct bank account details:
-
Using a previously tokenized bank account:
Bank account types
When providing direct bank account details, specify:-
bankAccountType:CHECKING: A checking account for day-to-day transactionsSAVINGS: A savings account with potential withdrawal limitations
-
accountOwnerType:CONSUMER: Individual/personal accountsCORPORATE: Business accounts
Channel
For consumer interaction method, specify:channel:ECOMMERCE: Customer interacts through online interfaceMAIL_ORDER_TELEPHONE_ORDER: Customer interacts through mail, phone, or fax
Entry modes
Indicates how the bank account information was collected:paymentEntryMode:KEYED: Manually enteredON_FILE: Retrieved from stored credentials
channel parameter with values ECOMMERCE or MAIL_ORDER_TELEPHONE_ORDER respectively.
Recurring type
For payment frequency, specify:recurringType:SINGLE: One-time payments with no future transactions expectedRECURRING: Subscription payments, recurring bills, or installment payments