Integration
Welcome to the SmartpayGenie Developer Documentation. This documentation is designed to help developers integrate with the SmartpayGenie payment gateway platform.
Supported languages
SmartpayGenie offers a flexible API that can be integrated into your application using various programming languages, including:
API integration
To integrate SmartpayGenie into your application, you can use the following methods:
1. Server-Side Integration:
2. Client-Side Integration:
note:Be cautious when using client-side integration, as it exposes your API keys. Consider implementing security measures to protect sensitive information.
API endpoints
Refer to our API Referencefor a detailed list of endpoints and their corresponding request and response formats. Here are some key endpoints:
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));
}
For more detailed information and code examples, please refer to the API Reference section of this documentation.