API Resources
When to use this page
Finding the right API resource for your task β Sessions, Payments, or Wallet Management.
Sessions are the entry point for the checkout widget β create one when you want CCG's UI to present a capability to the customer. They're not required otherwise: your server can create, capture, cancel, or refund a Payment directly against the API with no Session involved at all. Wallet Management is a mix of both β adding a new method happens through a Session (the widget drives it), while everything else (duplicates, invalidation, replacement) is a direct API/webhook concern.
- π§© Launching the checkout widget (Hosted or Embedded) β Sessions
- π³ Creating, capturing, cancelling, or refunding a payment directly from your server β Choose a Payment Flow
- πͺͺ Adding, editing, or removing a wallet payment method β Wallet Management
How the Resources Relateβ
- Launch the widget?Create a Session β it declares the capability (payment, wallet management, method entry) and options for that interaction. See Sessions.
- Pay directly from your server?Skip Sessions entirely β call the Payments API directly for a one-time or saved-method payment. See Choose a Payment Flow.
- Manage the wallet?Adding a method goes through a Session; everything else (duplicates, invalidation, replacement) is a direct API/webhook concern. See Wallet Management.