intentMandate (SD-JWT-VC) tokens from an agent and process a payment via the Delegare SDK.
The source code is available in the examples/express-checkout directory of the Delegare repository.
Overview
- Setup Buyer: The merchant creates a setup session for the user.
- Authorization: The user completes the setup via the Delegare UI, generating an Intent Mandate.
- Checkout: The AI agent sends the Intent Mandate to the merchant’s
/api/checkoutendpoint. - Execution: The merchant backend uses
@delegare/sdkto charge the mandate.
Merchant Backend (Node.js)
Running the Demo locally
If you have the Delegare repository cloned, you can run the interactive demo:curl command you can use to test the checkout!