Pay device order
Pays a PayNow order by card. First, load the embedded component with
your own public token and temporaryToken: true to collect the card.
Then send the temporary token ID it returns as storedMethodId. This
endpoint accepts cards only.
A temporary token can be used only once, even when the card is
declined. If the card is declined, this endpoint returns 402 and the
order isn’t affected. Tokenize the card again and call this endpoint
with the new ID. Don’t place the order again.
This endpoint requires the deviceorder_create permission.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Long-lived API token sent in the requestToken header. See API token authentication.
Path parameters
Request
The temporary token ID that the embedded component returns in
referenceId. A temporary token can be used only once, even when the
card is declined. After a decline, tokenize the card again and send the
new ID.
Response
Success when the request succeeds.
Code for the response. Learn more in API Response Codes.
Field not in use on this endpoint. It always returns 0.
Boolean indicating whether the operation was successful. A true value
indicates success. A false value indicates failure.