Getting payment link
Request
You can get a payment link using the REST API.
You can also send the amount in STRM, for this you need to send the amount
parameter instead of amount_usd
/ amount_eur
Payload Description
Parameter
Type
Required?
Description
amount_usd
string
One of amount_usd
, amount_eur
or amount
required. Amount in USD. Will be converted into NEAR on our side.
amount_eur
string
One of amount_usd
, amount_eur
or amount
required. Amount in EUR. Will be converted into NEAR on our side.
amount
string
One of amount_usd
or amount
required. Amount in NEAR.
name
string
YES
Name of payment. Could contain short description what user pays for.
description
string
NO
More detailed description. For example, you can pass list of purchased goods or services.
return_url
string
YES
URL to which user should be redirected after payment.
Response
In response you will get PaymentPageObject which contains the following data:
Parameter
Type
Description
paymentID
string
expiryAt
After this date, the link to the payment will be considered expired. Important: If the user has transferred Crypto, the callback will still be sent to your server
url
string
Link with payment instructions. You should redirect user here for payment.
Response Example
Last updated