Paypal PHP REST API Billing Agreement Blank Screen

ukdigitalst
New Community Member

I have had paypal billing agreement working for 1 year on my website. It was set up with Paypal Rest API Php.

About a month ago I noticed that it's not working... users get blank screen on the CreateAgreement Screen.

 

when users click paypal button on my website

<form action="https://website.com/subscribe/paypal/silver/paypal_agreement.php" method="POST">
    <button type="submit" style="margin-top:10px;border: 0; background: transparent">
    <img src="https://website.com/wp-content/uploads/2017/05/paypal.png" style = "width:170px;" alt="submit" />
    </button>                                   
</form>

Paypal agreement page "paypal_agreement.php (linked to the documentation analog)" shows as blank. In both Live&Sandbox modes.

 

However, Paypal.log (in DEBUG mode) shows that agreement & plan were set up well, as it shows json agreement details (id etc..)

I updated paypal rest sdk to latest one (from github) to make sure it's not because of the old sdk... but it still doesn't work.

paypal_agreement.php script is identical to Paypal docs example. The log shows that agreements & plans created successfully, so I think the whole script  & API Keys work fine.

 

I tried to do couple 'echo' along the paypal_agreement.php script but nothing shows. And paypal_agreement.php source code on browser (when I click ctrl+u) shows absolutelly empty (no html or body). I guess, that the issue is in paypal_agreement.oho page... but it's identical to the example on Paypal  docs.

 

Please, suggest me what could cause that? and how can I fix it..

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.