Subscription Checkout
Create invoices and preserve both merchant and public identifiers
Treat invoice creation as a checkout boundary. One SDK call produces both the merchant-side record ID and the agent-facing payment instructions.
Recommended shape
What to carry into your own app
- keep
invoiceIdfor internal references and merchant-side cancellation - keep
publicInvoiceIdfor payer-facing status checks and webhook joins - hand
agentProtocolthrough to agents as-is rather than re-encoding payment instructions
This pattern keeps ownership of local checkout records in your app while letting Gwop provide the payment contract.