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
Members
string
# client_secret Optional
The client_secret when you create payment intent, contain in the response
string
# customer_id Optional
The payment method component your website would like to integrate with
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 |
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
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)
string
# methodId Optional
The payment method id if you have, can be create by call createPaymentMethod
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 |
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 |
boolean
# save_payment_method Optional
Indicate whether to save this payment method for future payment