Our Web library lets you easily accept payments inside any web application.
To start using Remita Inline Checkout, refer to the sample Remita Inline Sample HTML file
Please replace the 'public key' in the script with your assigned API key, which you can obtain by signing up as an integrator on remita.
Integrating Remita Inline Checkout is a straightforward process. Include our JavaScript library at the bottom of the checkout form page, like so:
<form>
<script src="https://remitademo.net/payment/v1/remita-pay-inline.bundle.js"></script>
<button type="button" onclick="makePayment()"> Pay </button>
</form>
<script>
function makePayment() {
var paymentEngine = RmPaymentEngine.init({
key: 'public key',
customerId: "140700251",
firstName: "Lisa",
lastName: "Spark",
email: "[email protected]",
amount: 19999,
onSuccess: function (response) {
console.log('callback Successful Response', response);
},
onError: function (response) {
console.log('callback Error Response', response);
},
onClose: function () {
console.log("closed");
}
});
paymentEngine.showPaymentWidget();
}
</script>
For detailed information, refer to Remita Documentation
- 0.1.1
- CHANGE: Updated documentation
- 0.1.0
- Initial release
- 0.0.1
- Work in progress
- Join our Slack Developer/Support channel at slack
- For all other support needs, [email protected]
###Contributing: To contribute to this repository, follow the steps below:
- Fork the repository
- Create a new branch:
git checkout -b feature-name
- Make changes and commit:
git commit -m "added some new features"
- Make pushes:
git push origin feature-name
- Submit a PR (Pull Request)