Overview
There are three ways to accept payments with Shoppex:Storefront
Customers browse your shop and checkout directly
Payment Links
Share a link that takes customers straight to checkout
API
Create invoices programmatically from your app
This guide covers both hosted/public Shoppex flows (storefront, payment links) and Developer API flows (
POST /dev/v1/payments, POST /dev/v1/orders).The Payment Flow
You don’t need to integrate with Stripe or PayPal directly. Shoppex handles all gateway communication for you.
Important Integration Rule
One Shoppex invoice can have more than one payment attempt over time. A customer might open checkout, try PayPal, abandon it, come back and finish with Stripe. This surprises most people integrating for the first time. The important thing: redirect the customer to the Shoppex checkout URL, listen for webhook events, and fulfill based on the final invoice status. Don’t build your fulfillment logic around a single provider-side session ID.Method 1: Storefront (Hosted/Public)
Your storefront atyourshop.shoppex.io is ready out of the box:
- Customer browses products
- Adds to cart
- Completes checkout
- Receives product automatically
Method 2: Payment Links (Hosted Flow)
Create a link that goes directly to checkout - perfect for sharing on social media, emails, or anywhere.Create via Dashboard
- Go to Products → Your Product
- Click Copy Payment Link
- Share the URL:
https://yourshop.shoppex.io/product/your-product
Create via API
Method 3: API Integration (Developer API)
Use the Developer API when you need your own checkout UI or backend-driven payment flow.Payment vs Order
POST /dev/v1/payments and POST /dev/v1/orders look similar, but they solve different problems.
Use POST /dev/v1/payments when you have your own checkout and just want a hosted payment URL. You don’t get Shoppex catalog line items or automatic product delivery.
Use POST /dev/v1/orders when you want to charge for real Shoppex products — with line items, variants, and automatic delivery (files, serials, subscriptions, or DYNAMIC).
The quick rule: payments = generic developer payment. orders = catalog-backed Shoppex order.
Need to know which payment methods the shop currently accepts?
UseGET /dev/v1/me/capabilities for that.
A common mistake: GET /dev/v1/payments returns existing payment records, not the shop’s payment configuration. If you want to know which gateways (Stripe, PayPal, Crypto) are enabled, use GET /dev/v1/me/capabilities instead.
White-label crypto checkout is available by manual approval. Contact support to request access.Use
GET /dev/v1/me/capabilities to check whether white_label_crypto_checkout is enabled for your shop before you build a bot or custom crypto payment UI around it.Skip the crypto picker on hosted checkout
If you want to keep Shoppex hosted checkout but open a concrete coin directly, pass:gateway: the merchant crypto provider you want Shoppex to usecrypto_gateway: the concrete coin or network the buyer should pay with
OXAPAY and CRYPTOMUS.
cURL
gateway: "OXAPAY"+crypto_gateway: "TRON"-> hosted checkout opens directly on TRONgateway: "CRYPTOMUS"+crypto_gateway: "USDT_TRC20"-> hosted checkout opens directly on USDT TRC20white_label: true+crypto_gateway: "BITCOIN"-> Shoppex-managed white-label crypto returns Bitcoin payment data and exposesgateway: "WHITE_LABEL"in the response
crypto_gateway, the buyer lands on the normal generic crypto payment selection first.
White-label Crypto Checkout
Use this flow when you want to show the crypto payment details inside your own UI instead of redirecting the buyer to a normal Shoppex checkout page. Think: your Discord bot showing a TRON address and QR code directly in an embed, or your app rendering its own payment card with address, amount, and live status. This feature is available by manual approval only.How it works
- Ask Shoppex support to enable white-label crypto checkout for your shop.
- Call
GET /dev/v1/me/capabilities. - Check
features.white_label_crypto_checkout.enabled. - If it is
true, create the payment withcrypto_gateway: "TRON"andwhite_label: true. - Render the returned crypto fields in your own UI.
gateway: "NOWPAYMENTS" for this flow. White-label crypto is selected with white_label: true plus crypto_gateway, and the public response label is WHITE_LABEL.
If the feature is not enabled, POST /dev/v1/payments returns 403 FORBIDDEN for white-label crypto requests.
Check access
cURL
Create a white-label crypto payment
cURL
What to render in your own UI
Use these fields from the response:gateway:WHITE_LABELfor the Shoppex-managed white-label crypto railcrypto_gateway: the crypto the buyer should sendcrypto_address: the wallet address to paycrypto_amount: the exact amount to sendcrypto_uri: useful for QR codes or wallet deep linkscrypto_confirmations_needed: how many confirmations are needed before the payment can completestatus: the current Shoppex payment status
crypto_address in a copy field, turn crypto_uri into a QR code, display crypto_amount next to the network name, and keep the invoice uniqid to poll or re-read the payment status later.
Recommended integration pattern
- use white-label crypto only for the buyer-facing payment UI
- still treat the Shoppex payment or invoice state as the source of truth
- listen for Shoppex webhooks for the final paid or cancelled result
- use
GET /dev/v1/payments/:uniqidif you need to refresh the current payment state
WHITE_LABEL is the public API label for this flow. Shoppex may still use internal processor labels behind the scenes, but those are not part of the buyer-facing contract.
A typical Discord bot flow: create the payment, post the address and QR code, wait for the Shoppex webhook, then edit the message to show “Paid” when the payment completes.
Create a Payment
If you create the payment with
gateway: 'PANDABASE', Shoppex also returns checkout_url and session_id.- use
data.checkout_urlif you want the direct Pandabase checkout session URL - keep listening for Shoppex webhooks for the final paid/cancelled state
Server-side completion is also different:
POST /dev/v1/payments/:id/completeconfirms a generic developer payment onlyPOST /dev/v1/orders/:id/fulfillcompletes and fulfills a catalog-backed orderPOST /dev/v1/orders/:id/completeis the same completion pipeline, exposed as an alias for integrations that look for acompleteendpoint
Handle the Webhook
After payment, Shoppex sends a webhook to your server:Dynamic Product Fulfillment
If you use products withtype: "DYNAMIC", there is one more callback contract to implement: dynamic_webhook.
This is separate from normal Shoppex event webhooks.
The order:paid webhook tells your app that the invoice is paid. The dynamic_webhook is a separate fulfillment callback that asks your server for the delivered token, key, or access data.
Use the dedicated contract docs here:
Invoice vs Payment Link
| Feature | Invoice (API) | Payment Link |
|---|---|---|
| Use case | Custom checkout flows | Quick sharing |
| Customer email | Required | Optional |
| Multiple products | Yes | Single product |
| Custom fields | Yes | Product default |
| Expiration | Configurable | No expiration |
| Tracking | Full invoice data | Basic analytics |
- Use Payment Links for simple, shareable checkouts
- Use Invoices when you need control over the checkout or customer data
Payment Gateways
Configure your payment providers in Settings → Payments.Stripe (Recommended)
Supports: Credit cards, Apple Pay, Google Pay, SEPA, Klarna, and more.Get API Keys
Log in to Stripe Dashboard → Developers → API Keys
PayPal
Create REST App
Go to PayPal Developer → Create App
Cryptocurrency
Two options available:| Option | Setup | Fees |
|---|---|---|
| Self-hosted (BTC/LTC) | Run your own node | Network fees only |
| NowPayments / Cryptomus | API key only | Provider fees |
Testing Payments
Enable Test Mode in Settings before going live.Test Card Numbers
| Card | Number | Result |
|---|---|---|
| Visa | 4242 4242 4242 4242 | Success |
| Mastercard | 5555 5555 5555 4444 | Success |
| Declined | 4000 0000 0000 0002 | Declined |
| 3D Secure | 4000 0025 0000 3155 | Requires auth |
These numbers are Stripe-specific. PayPal and crypto gateways have their own sandbox modes.
Test Checklist
Common Scenarios
Sell a digital product
Sell a digital product
- Create product with File delivery type
- Upload your file
- Share your storefront or payment link
- Customer pays → receives download automatically
Sell software licenses
Sell software licenses
- Create product with Serials delivery type
- Add license keys (one per line)
- Customer pays → receives unique license key
Custom checkout in your app
Custom checkout in your app
- Create payment via API with customer email
- Redirect customer to
data.url - Listen for
order:paidwebhook - Fulfill order in your system
Recurring subscription
Recurring subscription
- Create product with Subscription type
- Set billing interval (monthly, yearly, etc.)
- Customer pays → subscription created
- Renewals happen automatically
Next Steps
Invoices
Deep dive into invoice lifecycle and statuses
Webhooks
Set up real-time notifications
Subscriptions
Set up recurring billing
API Reference
Explore all endpoints