Can not get any value at review.php on PayPal-Express-Checkout-example.

airpage
Contributor
Contributor

I'm working on the integration of paypal exresscheckout by using the sample php code from the link below.

 

https://github.com/hrendoh/PayPal-Express-Checkout-example

 

What's happening is that I can successfully login paypal and I can see buyer's name, address and the correct price from the application there, but when I redirect to review.php, it will not show any value such as Name, Email, and Your payment on the page. It seems that GetExpressCheckoutDetails is not working and I wonder if I have missed some settings somewhere on the line.


Could anyone please help me out?

 

I've modified followings. (I've not made any modification on review.php)

 

1. expresscheckout.php
$returnURL = "http://xxxxxx.com/xxxxx/review.php";
$cancelURL = "http://xxxxxx.com/xxxxx/index.php";

 

2. paypalfunctions.php (live account)
$API_UserName="xxxxxx_api1.xxxxxx.com";
$API_Password="KxxxxxxxxxxxxX";
$API_Signature="Axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1";

 

The url when I login to paypal.
https://www.paypal.com/webapps/hermes?flow=1-P&ulReturn=true&token=EC-8xxxxxxxxxxxxxxx5&country.x=JP...

 

The url when I redirected review.php from paypal
http://xxxxxx.com/xxxxx/review.php?token=EC-8xxxxxxxxxxxxxxx5&PayerID=WxxxxxxxxxxxG

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.