PaymentMethodsEndpoint

Instance Methods

Method Name Description
get(): Promise<LPaymentMethod[]> Get payment methods for the authenticated account.
create(paymentMethod: LPaymentMethod): Promise<LPaymentMethod> Start the process of creating a payment method.
setDefault(id): Promise<LPaymentMethod> Set the default payment method.
remove(id): Promise<{ success: boolean }> Remove a payment method.
tokenize(paymentMethod: LPaymentMethod, cardholderData: CardholderData): Promise<any> Complete the process of creating or updating a payment method.