Is a payment gateway widget by Kelola
- Acquire Quix transaction token on your backend
- Display Quix payment page on frontend
- Customer perform payment on payment page
- Handling payment status update on your backend
Field | Value |
---|---|
Client Key | Coming soon |
quix.js url |
https://github.com/kelola-tech/kelola-bayar-quix/releases/download/1.0.0/quix.js |
Transaction Token | Retrieved from backend (API) |
- Append this script into your body html
<script type="text/javascript"
src="https://github.com/kelola-tech/kelola-bayar-quix/releases/download/1.0.0/quix.js"`
data-client-key="SET_YOUR_CLIENT_KEY_HERE"></script>
- Call a quix method to process the transaction
window.quix.pay("TRANSACTION_TOKEN");
- You can also add an event callback
window.quix.pay("TRANSACTION_TOKEN", {
onPending: function (res) {
alert("Waiting your payment");
},
onSuccess: function (res) {
alert("Payment success");
},
onError: function (res) {
alert("Payment failed");
},
onClose: function (res) {
alert("Transaction widget was closed");
},
});