Interface

PaymentConsentResponse

PaymentConsentResponse

Interface of the response payload when call createPaymentConsent

View Source types/airwallex.d.ts, line 568

Members

string

# currency Optional

The currency of the payment consent

View Source types/airwallex.d.ts, line 589

string

# customer_id

The id of the customer

View Source types/airwallex.d.ts, line 584

string

# intent_id Optional

If merchant provide `intent_id` when call createPaymentConsent, we will return the `intent_id` If merchant not provide `intent_id` when call createPaymentConsent, we will create an initial intent and return the intent id

View Source types/airwallex.d.ts, line 572

string
The id of the new created payment consent

View Source types/airwallex.d.ts, line 579

object

# payment_method Optional

The payment method of the payment consent
Properties:
Name Type Attributes Description
id string The id of the payment method
bin string <optional>
The bin code of the card
last4 string <optional>
The last 4 numbers of the card
brand string <optional>
The brand of the card

View Source types/airwallex.d.ts, line 595