Test Development Flow
Use this sequence in development/staging to validate product creation, checkout, callbacks, and transaction status before production.
1) Create a product by API
curl -X POST "https://api.licensechain.app/v1/products" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name":"Sandbox Monthly",
"price":19.99,
"currency":"USD",
"productType":"subscription",
"billingType":"recurring",
"interval":"month",
"successUrl":"https://merchant.example.com/success",
"cancelUrl":"https://merchant.example.com/cancel"
}' 2) Request checkout session from Pay
curl -X POST "https://pay.licensechain.app/api/checkout/product/$PRODUCT_ID/stripe" \
-H "Content-Type: application/json" \
-d '{
"customerEmail":"buyer@example.com"
}' 3) Confirm callback/webhook delivery
Verify your webhook endpoint receives signed payloads and returns 2xx responses. See Callbacks & Webhooks.
4) Verify transaction status
curl -X POST "https://api.licensechain.app/v1/transaction/status" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "transaction":"pi_3RxExample123" }'