Extra Types
Billing#
export 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
stringMetadata#
export type MetadataType = Record<string, any> | undefined;Either an object or undefined
Payment Source#
export type PaymentSource = | { id: string; type: 'card'; brand: string; country: string; last4: string; } | { id: string; type: 'gcash' | 'grab_pay' };Paymongo Error#
export interface ErrorShape { code: string; detail: string; source?: { pointer: string; attribute: string; }; sub_code?: ErrorSubCode;}
export interface PaymongoError { errors: ErrorShape[];}errors *
ErrorShape[]ErrorSubCode#
export 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