Create payment session
To get paid in cryptocurrency, you need to create a payment session object with the details of the purchase.
Headers
Get an Api Key from Sprintcheckout Dashboard > Get paid
Body
An order can be STATIC or TRANSIENT (default behavior). A static order will not expire. A typical example could be a donation scenario. A transient order will not be reusable once is paid.
Amount of the purchase
Minimum amount of the payment
Is the payment input editable in UI?
Three letter FIAT currency code
Unique reference of the order on your ecommerce platform
URL where the user will be redirected from the hosted payment page on a successful payment
URL where the user will be redirected from the hosted payment page on a canceled payment
Response
Session unique identifier
Payment session URL that will redirect to the Sprintcheckout dApp