Create Airwallex Payment
create_paymentCreates a payment for a booking via Airwallex. For payment_type 'auto_fill' the card details are required; for 'payment_link' a shareable payment URL is returned. Requires a valid Druk Asia API key (sent automatically via the x-api-key header).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cvc | No | Card CVC (required for auto_fill). | |
| name | No | Cardholder name (required for auto_fill). | |
| amount | Yes | Payment amount in USD. | |
| card_number | No | Card number (required for auto_fill). | |
| expiry_year | No | Card expiry year (required for auto_fill). | |
| expiry_month | No | Card expiry month (required for auto_fill). | |
| payment_type | Yes | auto_fill charges a card directly; payment_link generates a payment URL. | |
| booking_ref_code | Yes | Booking reference code, e.g. DA-26-X7K2PQ. | |
| online_booking_id | Yes | OnlineBookings.Id (booking_id from create_booking). |