Interface

PaymentMethod

PaymentMethod

Interface to confirm a payment intent with card payment method, the full api request payload can be found: [Airwallex Client API](https://www.airwallex.com/docs/api#/Payment_Acceptance/Payment_Intents/_api_v1_pa_payment_intents__id__confirm/post) BACKGROUNDS: ------------ Due to [PCI CSS](https://www.pcisecuritystandards.org/) Airwallex js SDK will load Airwallex javascript to handle all sensitive information The PCI Security Standards Council (SSC) defines `cardholder data` which must also be protected: Primary Account Number (PAN) or the full PAN along with any of the following elements: `Cardholder name` `Expiration date` `Service code` Sensitive Authentication Data, which must also be protected, includes full magnetic stripe data, CAV2, CVC2, CVV2, CID, PINs, PIN blocks Only apply to Card elements (`cardNumber` | `cvc` | `expiry`) integration, refer to ElementType SOLUTIONS: ------------ The javascript SDK will fulfill collection of all the sensitive information required by PCI DSS You checkout page can collect the rest of NON-PCI DSS data and call confirmPaymentIntent using below interface to pass them to Airwallex checkout

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

Members

string

# client_secret Optional

The client_secret when you create payment intent, contain in the response

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

string

# customer_id Optional

The payment method component your website would like to integrate with

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

Element

# element

Element create by call createElement interface with 'cardNumber' element type

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

object

# error Optional

Response error when failed to call createPaymentMethod
Properties:
Name Type Attributes Description
message string <optional>
Free text message in english
code string <optional>
String code, will support in the future

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

string

# id Optional

The payment intent you would like to checkout Refer to [Airwallex Client API](https://www.airwallex.com/docs/api#/Payment_Acceptance/Payment_Intents/Intro)
Deprecated:
  • use `intent_id` instead

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

string

# intent_id Optional

The payment intent you would like to checkout Refer to [Airwallex Client API](https://www.airwallex.com/docs/api#/Payment_Acceptance/Payment_Intents/Intro)

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

string

# methodId Optional

The payment method id if you have, can be create by call createPaymentMethod

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

object

# payment_method Optional

The payment method detail return by call createPaymentMethod
Properties:
Name Type Attributes Description
card object Card info
name string <optional>
Card holder name
billing Billing <optional>
Card billing information if exist

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

object

# payment_method_options Optional

Only apply for card payment, use this option to provide additional config to confirm payment intent
Properties:
Name Type Attributes Description
card object <optional>
Option only apply to card
auto_capture boolean <optional>
Only support for card payment, indicate whether to capture immediate when authentication success

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

boolean

# save_payment_method Optional

Indicate whether to save this payment method for future payment

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