Inline/Popup Checkout
<script src="https://js.oneappgo.com/v1/checkout.js"> </script><button type="button" onclick="InitiatePayment()">Make Payment</button>function makePayment() {
const initpay = OneAppCheckout({
publickey: PUBLIC_KEY,
amount: 20000,
fname: "John",
lname: "Doe",
customer_email: "[email protected]",
phone: "09012345678",
reference: "SH9992IOQP820",
currency: "NGN",
onComplete:async (response) => {
//loading.value = false
if((response.status) && (response.responsecode == '01')){
var dref = response.reference;
var token = response.token;
var initiate_ref = response.initiate_ref;
successCallback(initiate_ref, token, dref, demail);
}else{
alert(response.message)
}
}
});
initpay.makePayment() //inittiate the payment
}Name
Description
Last updated