One-time payments
Authoritative terms for a checkout to display
What the buyer is about to pay, stated by the server rather than decoded in the browser. A tampered intent fails here, before anyone is shown - or asked to sign - anything.
This is the only endpoint that enforces expiry. It also asks the contract whether the payment already settled, so a buyer is never sent to their wallet for a transaction that would revert.
post/v1/payments/resolve
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/payments/resolve
- Auth: none required
Request body
Response
Terms to display and pay against.
Example response
{
"recipient": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"amount": "10.00",
"amount_units": "2500000",
"token": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"splitter": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9",
"reference": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708"
}Changes
No recorded changes to this operation across all 1 revision of this API.