Recurring payments
Exchange a signature for a charge capability
Validates the customer's signature against the terms and returns the p2s2 capability that charges this subscription. Contract wallets are supported (ERC-1271).
Store the capability. It is bearer authorization bound to one subscription's signed terms - keep it server-side, encrypted at rest, and never send it to a browser. Losing it means you cannot charge; leaking it means somebody else can, though only ever to the recipient the customer signed for.
post/v1/subscriptions/finalize
Request
- Base URL: https://api.p2flux.com
- URL: https://api.p2flux.com/v1/subscriptions/finalize
- Auth: none required
Request body
Example request
{
"payer": "0xb4e43f3fBa5Add75395adAD366627E7d74141Fa9"
}Response
The capability and the subscription identity.
Example response
{
"subscription_id": "0x2d6bbc112885a6976289e599f71003f7d310e7152ebd662c6221dffd3e0da708",
"amount": "10.00"
}Changes
No recorded changes to this operation across all 1 revision of this API.