Signed redirect to checkout
Hands an end user from the supplier’s site to the Waffo Point Topup storefront. Waffo validates the required parameters, checks that timestamp is within 2 hours, recalculates the signature, issues a session token and then redirects the user to the siteCode purchase page.
The signature must be generated on the supplier backend. Never expose SECRET_KEY to the front end.
Signing string: drop signature and every parameter whose value is empty or blank, sort the remaining keys in ASCII ascending order, build {baseUrl}?key1=value1&key2=value2&... including the base URL, compute HMAC-SHA256 with the shared SECRET_KEY, hex-encode and uppercase.
This endpoint is served from the dedicated {supplier}.waffoplay.com subdomain assigned during onboarding, not from the Waffo API host. A custom supplier-owned domain can be used instead — the supplier points that domain at the Waffo Point Topup endpoint, and the same domain must then be used as the base URL when building the signing string.
Query Parameters
Unique identifier assigned by Waffo to the supplier. Used to identify the supplier during API interactions.
64Charge account, for example the supplier membership ID.
64Face value, for example the number of supplier credits.
32Supplier's order ID. Waffo echoes it back on the fulfillment request, the fulfillment webhook and the fulfillment inquiry, so the supplier can reconcile against its own order record.
64Target site code, ISO 3166-1 alpha-2 country code. For example JP for Japan or US for the United States.
2Unix timestamp in milliseconds. Signature validity is controlled by this value; requests older than 2 hours are rejected.
Uppercase hex HMAC-SHA256 signature over the signing string, used for parameter integrity verification.
64Email address of the supplier member. Waffo Point Topup uses it to send the invoice to the user.
128Actual amount to be paid for the order. Precision must match the currency. Provide amount together with currency when the supplier sets the point price itself.
Order pricing currency, ISO 4217. Suppliers can price in a single currency; Waffo handles conversion between the pricing currency and the user's actual payment currency.
3Supplier front-end redirect URL that Waffo Point Topup returns the user to after checkout. Waffo appends salesOrderId to it. The value must be URL-encoded.
256Theme of the Waffo Point Topup checkout page. Defaults to dark.
light, dark 16Product ID defined by Waffo and used by the supplier. When a supplier has multiple product types or multiple source websites, Waffo assigns one product ID per item so each can be mapped to its registered payment-channel configuration. The value must match an ID defined by Waffo. Required for multi-product suppliers, optional for single-product suppliers.
64Endpoint that receives the fulfillment event webhook for this order.
512Response
Signature verified. The user is redirected to the siteCode purchase page. On a missing parameter, an invalid signature or an expired timestamp, the user is redirected to the corresponding error or expiry page instead.