Paypal PHP REST API Billing Agreement Blank Screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- can we assign a unique detail to every subscription creation? in NVP/SOAP APIs
- Hide shipping address in Debit/Credit card form in PayPal Payments Standard
- Load paypal approval_url in popup window using sdk in SDKs
- NOT_AUTHORIZED returned when using /billing-agreements/agreements in Sandbox Environment
- Is it possible to set multiple billing agreements in SetExpressCheckout? in NVP/SOAP APIs