Creating payment link
Name
Value
Name
Type
Required
Description
curl -X "POST" "https://api.sandbox.txn.pro/api/public/v1/payment_links" \
-H 'Content-Type: application/vnd.api+json' \
-H 'Authorization: Bearer ' \
-d $'{
"data": {
"type": "payment_links",
"attributes": {
"amount": "100",
"currency": "EUR",
"accountCurrency": "EUR",
"reference": "8c40d8b6-ccdf-4861-a6d6-6c3125ce3f31",
"expires_at": "2025-01-12T23:00:00.000Z",
"paymentType": "Invoice",
"paymentMethods": [
"on_chain"
],
"payCurrencies": [
"USDC"
],
"successRedirectUrl": "https://example.com/success",
"unsuccessRedirectUrl": "https://example.com/fail"
}
}
}'Name
Type
Description
Last updated