ACH
warning
Before you start integrating ACH, please contact support. You won't get a success response without domain registration.
ACH in Advanced mode uses Plaid via tokenizer integration.
Key requirements
paymentMethod: 'ach'redirectURL: string | URL(required)sandbox: boolean(optional; enables Plaid sandbox)
Configuration Reference
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
redirectURL | string | '' | Yes | Plaid redirect URL used during bank account verification. |
sandbox | boolean | false | No | Enables Plaid sandbox environment. |
strictMode | boolean | false | No | Requires a valid email when enabled (set fields.email). |
fields.email.id | string | - | No/Yes | Email field mount target. Required when strictMode: true. |
fields.email.required | boolean | false | No | Marks email as required. |
fields.email.placeholder | string | - | No | Email input placeholder. |
fields.email.value | string | - | No | Default email value. Also mirrored to reverePay.email. |
fields.email.css | CSSProperties | - | No | Inline styles applied to the mounted email input. |
Example (TypeScript)
- TypeScript
import { AdvancedReverePay } from '@revere_payments/tokenizer';
import type { SuccessResponse, ErrorResponse } from '@revere_payments/tokenizer/types';
const reverePay = new AdvancedReverePay({
merchantId: 'yourMerchantId',
publicAPIKey: 'yourPublicAPIKey',
config: {
paymentMethod: 'ach',
redirectURL: 'https://merchant.example.com',
sandbox: true
}
});
reverePay.onLoaded = () => console.log('Tokenizer loaded - ACH');
reverePay.onSuccess = (res: SuccessResponse) => console.log('SUCCESS', res);
reverePay.onError = (status: number, validation, err?: ErrorResponse) => {
console.log('ERROR', status, validation, err);
};
reverePay.submit();
Validation and callbacks
- On Plaid exit,
onError(status, validation)is called; on success,onSuccesscontains ACH details and a token.
Response Types
For detailed information about response types, see Response Types.
Playgrounds
- TypeScript
- JavaScript