Guest user checkout
One-off or single payments help you to complete your checkout process when the Buyer is present and active in your web shop. In this scenario the Buyer will provide his card details as well as all the ancillary information required.
- Create a payment intent on your server with currency and amount you want to charge from your buyer using
POST/api/v1/pa/payment_intents/create
. You will receive the payment methods available as well as the next action to be performed.
Note: You can provide specific data fields in Create a PaymentIntent API and Confirm a Payment Intent API endpoints to significantly improve Airwallex's fraud protection performance, ultimately boosting conversion rates and minimizing fraud risk. For more information, see Enhance fraud protection with comprehensive payment data.
Request:
Response:
- Use
POST/api/v1/pa/payment_intents/{id}/confirm
endpoint to submit the outstanding payment method details and request the authorization for a given payment.
Request:
Response:
If you received the status AUTHORIZED or SUCCEEDED (only if you are auto capturing) your payment is completed and you can release the goods to your Buyer.
You must follow the Capture use case detailed later to complete your transaction. If you forget to capture you will not receive any funds