PHM Paddle checkout (static bundle)
===================================

Deploy this folder to your site (e.g. https://pluginhealthmonitor.com/checkout/)
so index.html is served at that URL.

1) Paddle dashboards
   - Sandbox: https://sandbox-vendors.paddle.com/
   - Live:    https://vendors.paddle.com/

2) Client-side tokens (not API keys)
   Developer tools → Authentication → Client-side tokens.
   Paste into assets/checkout-config.js:
   - sandbox.clientToken → test_… token from sandbox
   - live.clientToken    → live_… token from live

3) Price IDs
   Catalog → Products → your Pro subscription → copy Price ID (pri_…) for monthly
   and annual recurring prices into priceIds.monthly / priceIds.annual for each
   environment.

4) Payment methods (all recommended options)
   In Paddle: Checkout → Payment methods (or equivalent), enable every method
   you support: major cards, PayPal, Apple Pay, Google Pay, and regional/local
   methods. The iframe automatically shows what Paddle can offer for each buyer.

5) Domains
   Add your production domain to Paddle’s allowed domains / website approval
   settings so checkout can load on pluginhealthmonitor.com.

6) Sandbox vs live in the browser
   - Default mode is controlled by defaultEnvironment: 'sandbox' or 'live' in
     checkout-config.js.
   - Override for testing: ?phm_env=sandbox or ?phm_env=live on the checkout URL.

7) Production
   Set defaultEnvironment to 'live' and deploy real live tokens + price IDs.
   Never commit real live secrets to a public repository; inject at deploy time
   if needed.

8) WordPress plugin link
   Point users to this page from the plugin, e.g. in wp-config.php:
   define( 'PHM_UPGRADE_URL', 'https://pluginhealthmonitor.com/checkout/' );

References: https://developer.paddle.com/paddlejs/include-paddlejs
            https://developer.paddle.com/build/checkout/build-branded-inline-checkout
