To call airwallex payment, the following 4 pieces of information are required:
+ client_id
+ api_key
+ currency
+ webhook_secret
# Open an account
[https://www.airwallex.com/](https://www.airwallex.com/)
Official, apply for activation. If you need to activate the mini program payment function, you need to contact their technology to bind the appID for you. After authorization, your mini program can access airwallex payment.
# Get key information

Get the client_id and api_key information through the location in the picture above
currency is the currency code for payment, for example, CNY is payment in RMB
# Configure webhook
Airwallex's payment asynchronous notification is implemented by configuring webhook, as shown in the figure:


Fill in the notification address: https://api.it120.cc/**gooking**/pay/airwallex/payBack
Among them red **gooking** Please change it to your own exclusive domain name
Please check the following notification events: payment_intent.succeeded
After creating the webhook, you can get the webhook_secret in the list:

#Backend configuration
Configure the above information to the "apifm" background:

# Front-end call
## Mini program payment
The front end calls the interface:/pay/airwallex/wxappJust initiate payment through the interface;
WXAPI SDK can be called directly:
```javascript
WXAPI.wxpayAirwallex({...})
```