Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have integrated paypal into my website and in the back end I am doing PayPal calls for SetupRecurringPaymentProfile.

I have a general problem where in.

1. The user is displayed the amount he has to pay
2. User agrees and clicks "Go to PayPal" to be redirected to paypal
3. PayPal (sandbox) displays the Amount and relevant details on left pane and gives the option for the user (test sandbox account) to login.

But when I login, instead of it displaying "Review Payment Information" where we click Agree & Continue to be redirected back to our website, the Sandbox is navigating to the User (test account) profile page. Which is the page you would get if you login at http://sandbox.paypal.com directly with test account credentials.

This was working till yesterday and today I am having problems with it.

The site is deployed to a third party hosting site (since the Return URL) for setting up agreement needs to come back to an online website.

Any suggestions on what might be going wrong? and how I can test this?

There is not error, but instead of navigating back after the review page, Sandbox is navigating to Profile page.

Please help..
Posted
Updated 25-Feb-15 7:46am
v2
Comments
ZurdoDev 25-Feb-15 14:01pm    
If it worked before and the code did not change then perhaps there is an issue with the account you are logging in with?

Also, contact paypal.
robroysd 25-Feb-15 14:10pm    
Hi RyanDev,

Yes, I believe it was an issue with the account. Below are the things I did

1. Created a new sandbox test account (of type Personal-buyer account)
2. Tested the flow with this new account - ran into same problem
3. Tried with Chrome (I was using Internet Explorer before) and it worked.

I don't know why, but even after deleting cookies and data from IE, it kept filling in the "User Name" field when redirected to PayPal for payment.

But now it is fixed. It was a problem maybe with IE persisting data. But I still don't understand it completely as Sandbox was accepting credentials - skipping the Review amount to pay - and going directly to Sandbox account's home page.

Thanks for your tip.

As RyanDev says: talk to Paypal.

Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from Paypal themselves - the scope for fraud otherwise is far too large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!
 
Share this answer
 
Comments
robroysd 25-Feb-15 14:13pm    
Hi OriginalGriff,

Thank you for your advice. By integrating I mean, I have a backend service I have written to do the API calls myself. No third party software has been used for integration as you suggested, it might log transactions that are not secure.

I followed the tutorials for doing SetExpressCheckout and SetRecurringPaymentsProfile calls. My code also does other things like listen to IPN and process in the background.

Thanks again for the advice.
Solution:

1. Internet Explorer might cause this issue.
2. Use a different Browser to see if the flow works with that (example Chrome, Firefox etc).
3. Try setting up a different Test account (Buyer - personal account) in paypal sandbox and use that to see if it works.

Sometimes deleting files and cookies in IE might not solve the issue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900