CityPay JS Demo
Example Pages
Use these pages to exercise the main intent-first integration and the alternative checkout-context flow.
Missing VITE_CP_PUBLIC_KEY. Add it to the Vite environment before opening a demo page.
Payment Intent
Creates a Payment Intent before mounting Elements. This is the main checkout flow.
Checkout Context
Mounts payment UI before a final Payment Intent exists. Exchange happens when the shopper commits.