Payment Links
Payment links via API
Aeropay offers a paymentLink API which generates and sends an Aeropay payment link for your merchant location to a customer's email or phone number.
Request parameters
| Parameter | Required? | Type | Description |
|---|---|---|---|
| phone | phone or email is required | String | The phone number to send the payment link to |
| phone or email is required | String | The email address to send the payment link to | |
| uuid | Yes | String | The merchant location uuid |
| amount | No | String | Amount value in USD |
| paymentType | No | String | The paymentType: standard, preauth, or subscription. Defaults to standard. |
| subscriptionId | No | String | Subscription offer id if paymentType is 'subscription' |
| transaction_uuid | No | String | Unique uuid (ISO/IEC 9834-8) to identify the transaction. This value can be used to associate Aeropay transactions with your own system. |
Code Example - Request
curl --request POST \
--url https://api.sandbox-pay.aero.inc/paymentLink \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"phone": "7865641122",
"amount": "10.00",
"uuid": "4557b52c-e55f-44e0-a45a-7bfd032cdae9",
"paymentType": "standard"
}
'
Build-Your-Own Payment Links
Alternatively, you can build payment links by adding parameters to the base URL, pay.aero.inc. Parameters include your merchant location uuid, transaction amount, and transaction id. Please note, you must generate the UUID according to the standard methods (ISO/IEC 9834-8).
In the sandbox environment, the base URL will be https://sandbox-pay.aero.inc/
PAYMENT URL: baseurl + ?m= + Merchant location UUID + &t= + transaction Total Amount + &u= + transaction UUID
example:
https://pay.aero/?m=3294913115&t=30.24&u=123e4567-e89b-12d3-a456-426614174000Updated 3 months ago
