Overview
A digital goods purchase allows customers to buy virtual currency, in-game tokens, sweepstakes coins, and other digital products. This uses the line items checkout flow where you specify the products and quantities being purchased.How It Works
- Create products in Soap that represent your digital goods (virtual currency packages, token bundles, etc.).
- Create a checkout session with
type: "deposit"and includeline_itemsreferencing those products. - The customer is redirected to the Soap-hosted checkout page showing the items and total.
- The customer selects a payment method and completes the purchase.
- Upon completion, a webhook is fired and the customer is redirected back to your app.
API Request
Key Parameters
| Parameter | Required | Description |
|---|---|---|
customer_id | Yes | The customer’s unique identifier |
type | Yes | Must be "deposit" |
line_items | Yes | Array of products with product_id and quantity |
experience | No | "web" or "webview" |
return_url | No | Where to redirect the customer after completion |
When to Use
- Virtual currency purchases (gold coins, tokens, credits, etc.)
- Sweepstakes coin packages
- Any digital goods tied to a product catalog
← Back to Create Checkout
View the full API reference for creating checkouts.

