Payment Method
#
Payment Method Resourceexport interface PaymentMethodResource<Metadata = MetadataType> { id: string; type: 'payment_method'; attributes: { livemode: boolean; type: 'card'; details: { last4: string; exp_month: number; exp_year: number; }; billing?: Billing; metadata: Metadata; };}
#
Create Payment MethodCreatePaymentMethodParams): PaymentMethodResource#
paymongo.paymentMethod.create(Example
paymongo.paymentMethod.create({ data: { attributes: { type: 'card', details: { card_number: '4343434343434345', cvc: '123', exp_month: 12, exp_year: 2025, }, }, },});
#
Create Payment Method Params#
Retrieve Payment Methodpaymongo.paymentMethod.retrieve(RetrievePaymentMethodParams): PaymentMethodResource
Example
paymongo.paymentMethod.retrieve({ id: 'pm_ajeDG2y6WgnrCXaamWFmPUw2',});
#
Retrieve Payment Method Paramsid *
string