@stripe/stripe-js
Version:
Stripe.js loading utility
68 lines (49 loc) • 1.53 kB
text/typescript
/**
* An object containing additional payment information you might have collected.
*
* Although these fields are optional, we highly recommend collecting name and address.
* This information can be used to perform a number of verifications, such as CVC, ZIP, and address verification.
* Radar includes built-in rules that can block payments where the ZIP or CVC verifications with the cardholder’s bank failed.
*/
export interface CreateTokenCardData {
/**
* @recommended
*/
name?: string;
address_line1?: string;
address_line2?: string;
address_city?: string;
address_state?: string;
address_zip?: string;
/**
* A two character country code (for example, `US`).
*
* @recommended
*/
address_country?: string;
/**
* Required in order to [add the card to a Connect account](https://stripe.com/docs/connect/payouts#bank-accounts) (in all other cases, this parameter is not used).
* Currently, the only supported currency for debit card payouts is `usd`.
*/
currency?: string;
}
export interface CreateTokenIbanData {
/**
* Three character currency code (e.g., `eur`).
*/
currency: string;
account_holder_name: string;
account_holder_type: string;
}
export interface CreateTokenPiiData {
personal_id_number: string;
}
export interface CreateTokenBankAccountData {
country: string;
currency: string;
routing_number?: string;
account_number: string;
account_holder_name?: string;
account_holder_type: string;
account_type?: string;
}