Skip to content

superfaceai/arcpay-merchant-demo

Repository files navigation

Arc Pay Merchant Demo Store

This is a playground e-commerce store that lets you try out agentic payments via Arc Pay in a sandbox environment.

Agentic Commerce Protocol (ACP)

Protocol Part Supports
Checkout Sessions ✅ All methods
Delegated Payment providers Arc Pay
Delegated Payment method wallet

Universal Commerce Protocol (UCP)

Protocol Part Supports
Checkout Capability
Fulfillment Extension
Payment handler Arc Pay
Payment instrument wallet

Docs

Use the included Postman collection to try out the store API:

  • GET /api/products lists products in JSON
  • /api/acp/... path prefix hosts the ACP Checkout Sessions
    • POST /checkout_sessions
    • POST /checkout_sessions/{checkout-session-id}
    • GET /checkout_sessions/{checkout-session-id}
    • POST /checkout_sessions/{checkout-session-id}/complete
    • POST /checkout_sessions/{checkout-session-id}/cancel
  • /api/ucp/... path prefix hosts the Google's UCP
    • POST /checkout-sessions
    • GET /checkout-sessions/{checkout-session-id}
    • PUT /checkout-sessions/{checkout-session-id}
    • POST /checkout-sessions/{checkout-session-id}/complete
    • POST /checkout-sessions/{checkout-session-id}/cancel
    • + discovery manifest at root's /.well-known/ucp

Development

Install the dependencies

npm i

Set the environment variables

cp .env.example .env

Run the development server:

npm run dev

Open http://localhost:3001 with your browser to see the result.

About

Playground e-commerce store that lets you try out agentic payments via Arc Pay in a sandbox environment.

Resources

Stars

Watchers

Forks

Contributors

Languages