Checking payment status
Request
You can check payment status using the REST API.
Response
In response, you will get PaymentObject which contains the following data
Parameter
Type
Description
payment_id
string
Unique payment ID in our system
address
deprecated
string
Deprecated. Use addresses
instead. STRM address on which customer should transfer money. This is temporary address which is created for each payment.
amount
deprecated
numeric string
Deprecated. Use addresses
instead. Amount of payment in yoctoSTRM (1 STRM = 1024 yoctoSTRM)
addresses
List of supported coins with amount and addresses.
display_amount
deprecated
numeric string
Deprecated. Use addresses
instead. Amount of payment in STRM
display_amount_usd
numeric string
Amount of payment in USD
display_amount_eur
numeric string
Amount of payment in EUR
local_currency
string
usd
or eur
. Default fiat currency for this payment.
network
string
Network in which payment is created. Could be testnet
, mainnet
, etc.
status
string
Status of payment: pending
, completed
, not_found
.If payment is expired, not_found
will be returned.
name
string
Payment name
description
string
Payment description
return_url
string
URL where user will be redirected after successful payment
created_at
When payment was created
expiry_at
After this date, the link to the payment will be considered expired.Important: If the user has transferred money, the callback will still be sent to your server
processed_at
If payment.status == completed
, this field would contain date of processing payment in our system
transaction_hash
string
only if payment.status == completed
.Hash of transaction sent by customer. If there was more than one transaction, the last successful one is returned. May appear with a delay of up to 10 minutes after successful payment processing
signer_id
string
only if payment.status == completed
.The wallet from which the payment was made. If there was more than one transaction, the last successful one is returned. May appear with a delay of up to 10 minutes after successful payment processing
Coin Object
token
string
Name of token. For example, STRM.
Supported tokens: STRM
, USDC, SOL.
blockchain
string
Name of blockchain.
Supported blockchains: strm.
contract
string
Please note, that STRM will have contract address wrap.near
that should be ignored.
Address of contract.
address
string
Address on which customer should transfer money. This is temporary address which is created for each payment.
icon
string
Link to coin icon.
amount
numeric string
Amount of payment in the smallest unit (for example, 1 STRM = 1024 yoctoSTRM).
This value could be used in smart-contract calls.
displayAmount
numeric string
Human-readable amount of payment.
ÄResponse Example
Expired Response Example
Last updated