paypal / here-sideloader-api-samples

Sideloader API samples that enable to integrate PayPal Here into other apps
Other
24 stars 32 forks source link

Passing restricted username & password to Paypal Here app #48

Open ghost opened 8 years ago

ghost commented 8 years ago

I have this working great with a HTML Android app but the Return URL which loops me back to my app causes Paypal Here to log out/end session even if new sale is clicked.

I have created a new Paypal user with restricted Paypal Here options. So I wish to pass my username and password in the data sent to paypal here to stop me having to log in on each transaction.

pphereUrl = pphereUrl + '&username=mynameb&password=mypassword'; (not sure whether I may need to encode this?) Also tried pphereUrl = pphereUrl + '&user=mynameb&password=mypassword';

I am using the web code, which works great. Apart from the Return URL part which is causing the log out issue https://github.com/paypal/here-sideloader-api-samples/blob/master/web/index.html

ghost commented 8 years ago

Any ideas on this?

glaidler commented 7 years ago

According to PP, the auto-login feature was deprecated in a version released in March 2017. No advance notification, and if the code was still there, it helpfully crashed the app.

lernerb commented 7 years ago

@sozel ^

glaidler commented 7 years ago

If it helps your internal processes, as this caused us no-end of grief from several customers, email respose from merchant technical support


Response Via Email(Andrea) - 03/31/2017 10:06 AM Hi Graham,

After the check with our engineers results that the automatic password log-in functionality was deprecated because of security reasons.

With the new PayPal Here updates this functionality is intended to require each time the log-in so the function used to pass the log-in details automatically is not working anymore.

You will need to login to the PayPal Here App at the beginning of the day and then you shouldn't have to login again if the activity is frequent enough (there is a time window of approximately 15 minutes when the log-in provided is still active and will not require to re-login).

That's the reason why the flow is behaving like this.

Kind Regards, Andrea | PayPal Merchant Technical Support