Welcome,
Guest
|
|
|
I have been successful to run my sample code on localhost and it worked fine.
I tried using my code online on my server which has a htttps connection and the iframe is not displaying. On further research i discovered that pesapal iframe source is using http instead of https . Here is a sample code from the iframe which is http $post_xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><PesapalDirectOrderInfo >"; Even after changing it to https the result is the same on my online https server. Even upon inspecting with chrome tools it shows the iframe in my pesapal-iframe.php is still http and not https . Please help me with this problem so that the iframe can display and i can enable transaction. https://img42.com/fe2iN+ |
|
|
I changed the iframe link to https and it worked . This link is found in the pesapal-iframe.php .
$iframelink = 'demo.pesapal.com/api/PostPesapalDirectOrderV4';//change to //www.pesapal.com/API/PostPesapalDirectOrderV4 when you are ready to go live! changed it to $iframelink = 'demo.pesapal.com/api/PostPesapalDirectOrderV4';//change to //www.pesapal.com/API/PostPesapalDirectOrderV4 when you are ready to go live! |
|
|