curl --request GET \
--url https://{supplier}.waffoplay.com/redirectimport requests
url = "https://{supplier}.waffoplay.com/redirect"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{supplier}.waffoplay.com/redirect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{supplier}.waffoplay.com/redirect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{supplier}.waffoplay.com/redirect"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{supplier}.waffoplay.com/redirect")
.asString();require 'uri'
require 'net/http'
url = URI("https://{supplier}.waffoplay.com/redirect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodySigned 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.
curl --request GET \
--url https://{supplier}.waffoplay.com/redirectimport requests
url = "https://{supplier}.waffoplay.com/redirect"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{supplier}.waffoplay.com/redirect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{supplier}.waffoplay.com/redirect",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{supplier}.waffoplay.com/redirect"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{supplier}.waffoplay.com/redirect")
.asString();require 'uri'
require 'net/http'
url = URI("https://{supplier}.waffoplay.com/redirect")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyQuery Parameters
Product 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.
64Response
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.
Was this page helpful?