Inline Checkout
The quickest way to build conversion - optimized payment forms, hosted on Parallex Pay
How to Integrate
<button class="btn-go-checkout" onclick="paywithParallexPay()">
<script src="https://checkout.parallexbank.com/api/v2/parallex.js"></script>
<script>
function paywithParallexPay() {
ParallexPay({
"tranref": new Date().getTime(),
"currency": "NGN",
"description": "TEST",
"country": "NG",
"amount": "100.00",
"full_name": "test test", //optional
"email": "[email protected]", //optional
"vendorId": "attach yor sub-account ID", //optional
"callbackurl": "http://yourdomain.com",
"public_key":"your pk_78892hhiiw82", //replace this with your own public key
"setAmountByCustomer": false //optional (set true to allow customer set the amount on the checkout)
"planId": "" // subscription plan id
},
function callback(response, close) {
/*response of the tansaction*/
/*close is a function to close the checkout*/
},
function close(close) {
console.log(close) /*transaction close*/
})
}
</script>Optional Configuration
Field
Type
Description
Can we help?
Last updated