Extra Types
#
Billingexport interface Billing { address?: { city?: string; country?: string; line1?: string; line2?: string; postal_code?: string; state?: string; }; email?: string; name?: string; phone?: string;}
address
objectcity
stringcountry
stringline1
stringline2
stringpostal_code
stringstate
stringname
stringphone
string#
Metadataexport type MetadataType = Record<string, any> | undefined;
Either an object or undefined
#
Payment Sourceexport type PaymentSource = | { id: string; type: 'card'; brand: string; country: string; last4: string; } | { id: string; type: 'gcash' | 'grab_pay' };
#
Paymongo Errorexport interface ErrorShape { code: string; detail: string; source?: { pointer: string; attribute: string; }; sub_code?: ErrorSubCode;}
export interface PaymongoError { errors: ErrorShape[];}
errors *
ErrorShape[]#
ErrorSubCodeexport type ErrorSubCode = | 'card_expired' | 'cvc_invalid' | 'generic_decline' | 'fraudulent' | 'insufficient_funds' | 'processor_blocked' | 'lost_card' | 'stolen_card' | 'processor_unavailable' | 'blocked';
Possible values: card_expired
| cvc_invalid
| generic_decline
| fraudulent
| insufficient_funds
| processor_blocked
| lost_card
| stolen_card
| processor_unavailable
| blocked