Quick start
Welcome to the SmartpayGenie Developer Documentation. This documentation is designed to help developers integrate with the SmartpayGenie payment gateway platform.
Prerequisites
Steps to integrate payment processing
1.Obtain API Keys:
2. Create a Payment Form:
3.Implement Payment Processing Logic:
const myHeaders = new Headers();
myHeaders.append("token", "TlAWiePV51isvfuRZEHuCOW1ZDBeDHep2rnosIXHRVGvMwyFTMJZUVCeIneQJJ0h");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"customerId": "49438567-bc45-494c-b57d-80b41f193de7",
"currency": "kes",
"channel": "fiat"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://api.switch.tulupay.com/customer/add-account", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));
}
Handling payment notifications
Security considerations
Additional tips