π°Generate Payment Link
Last updated
Last updated
curl --location 'https://connect-sandbox.paylaterapp.com/api/paylater/merchant-portal/web-checkout/' \
--header 'x-api-key: a4f9feba-19dd-47b7-8d09-268a25c44a35' \
--header 'Content-Type: application/json' \
--data '{
"merchantId": "138",
"outletId": 1000000061,
"currency": "QAR",
"amount": 350.00,
"orderId": "O-3445",
"successRedirectUrl": "https://test.com/success",
"failRedirectUrl": "https://test.com/fail"
}'{
"paymentLinkUrl": "https://payments-sandbox.paylaterapp.com/paylink/uuid?token=xyz&channel=web"
}{
"error": "Merchant ID cannot be null"
}
{
"error": "Order ID must be unique"
}
{
"error": "Amount must be between 300 and 4000"
}