Eons past, the HTTP status code 402 was reserved for future use; "Payment Required".
Please to god W3C, take 402 and make it part of that standard! I so wish for us all to be able to respond 402 and have a simple standard way to charge.
Please to god W3C, take 402 and make it part of that standard! I so wish for us all to be able to respond 402 and have a simple standard way to charge.
However, there's a proposed server/HTTP specification that does include it. It lacks the same broad support that Payment Request has, so is still in quite an early stage of development - https://www.w3.org/TR/webpayments-http-api/
[1]: https://docs.taler.net/merchant/frontend/python/html/tutoria...