ACK-Pay is a protocol built on W3C Standards designed to facilitate secure, verifiable, and interoperable financial transactions among autonomous agents, services, and human participants.This interactive command-line demo illustrates the Server-Initiated payment flow, including:
A Client Agent attempting to access a protected resource.
A Server Agent issuing a Payment Request.
The Client making a payment.
A Receipt Service verifying the payment and issuing a receipt (in the form of a Verifiable Credential).
Client using the receipt to access the protected resource.
The interactive CLI guides you through these steps:
1
Resource Request
Client requests access to a protected resource. Server responds with an HTTP 402 Payment Required status containing a PaymentRequest.
2
Making Payment
Client performs an on-chain stablecoin (USDC) payment to the Server’s wallet
on Base Sepolia testnet. Alternatively, a credit card payment can be handled
via a Payment Service.
3
Receipt Request
After payment completion, Client requests a receipt (VC) from the Receipt
Service by providing proof of payment.
4
Receipt Verification
Receipt Service verifies provided transaction details and issues a Receipt
Credential.
5
Accessing the Resource
Client retries accessing the resource, presenting the receipt to the Server.
Server verifies receipt authenticity and grants resource access.
Explore comprehensive ACK-Pay functionalities and integrations in real-world applications involving diverse payment methods and Payment Service integrations: