Forum
Paypal Express Checkout
Hi,
I am trying to implement the Paypal Express checkout in Runway Shop, but am getting stuck. I have set up the Sandbox Merchant Account and entered the credentials in Test. My payment
page (where users get sent after logging in) currently just looks like this:
<?php
if (perch_member_logged_in()) {
// your 'success' return URL
$return_url = 'https://mysite.com/payment';
$cancel_url = 'https://mysite.com/';
perch_shop_checkout('paypal-express', [
'return_url' => $return_url,
'cancel_url' => $cancel_url,
]);
}
?>
Is this supposed to trigger a redirect to Paypal? As at the moment it just stays on payment
. I am probably missing something fundamental!
Thanks
Mike
Yes, that should send you to PayPal as long as you've not output any HTML to that point.
Hmm nope it is just sitting there - that code is my entire page so no HTML above it. Not a PHP error as the debug is visible, nothing in the error log. I am on MAMP, do I need to be on a non-local server?
Just run through the process again and got a 500 error on the payment page, so progress?!? Error log shows:
Can we see your diagnostic report? Looks like this is a server config issue.
Sure, extended report:
Can you create a blank PHP file on your server containing just the following, then view it in a browser and let me know what it outputs?
It says
Ok, that explains the problem. I'll see if I can figure out a solution.
For reference: https://www.paypal-knowledge.com/infocenter/index?page=content&id=FAQ1914&expand=true&locale=en_US
Did you ever figure out what was causing this?
Gareth - if you are having an issue yourself raise your own thread including details plus your template and Diagnostics Report.
Thanks!
Hi Drew,
Just wondered if was there any progress with this? And is there anything I can do?
Cheers
Mike
Have you asked your host about their TLS support? That PayPal document I posted should be useful.
I'm not convinced there's anything effective I can do that wouldn't just result in everything breaking for you in 2017 when PayPal roll this change to their live servers.
Ok thanks I will check with them and see what they say
Sorry for reviving an old thread, however I just followed these steps in order to upgrade the cURL library on MAMP and this has fixed the error using Paypal Express, at least for me. May be helpful to others: https://github.com/lunr/mamp-curl-tls