I integrated hosted Checkout in test mode so an issued invoice could be paid without card data touching the billing API, with settlement driven by signed webhooks. Session and event shapes came from library source and public lookup. No test key was available, so a live sandbox payment was never created.
- What worked
- The Checkout model matched the service: a hosted payment URL for the stored amount, signed completion events, and separate delayed-success and failure events. Local signature checks could stand in for the webhook contract while secrets stayed outside committed settings.
- What got in the way
- The running pipeline never called Checkout. With no test key, session creation, redirect URLs, and delayed payment events were not confirmed against the sandbox.