I have implemented demo for securepay from reference link https://securionpay.com/docs/checkout#custom-integration
I have used custom integration as below
<script src="https://securionpay.com/checkout.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
SecurionpayCheckout.key = 'key';
SecurionpayCheckout.success = function (result) {
// handle successful payment (e.g. send payment data to your server)
};
SecurionpayCheckout.error = function (errorMessage) {
// handle integration errors (e.g. send error notification to your server)
};
$('#payment-button').click(function () {
SecurionpayCheckout.open({
checkoutRequest: 'xyz=',
name: 'SecurionPay',
description: 'Checkout example'
});
});
});
</script>
<button id="payment-button">Payment button</button>
Here integration working pefect.but when i want open popup on load page instead of clicking button then its block by browser in mobile view.so how to prevent to block using JavaScript without allowing from browser.
Getting error : Uncaught TypeError: Cannot read property 'focus' of null