Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept payment result #95

Open
nzurita opened this issue May 22, 2019 · 1 comment
Open

Accept payment result #95

nzurita opened this issue May 22, 2019 · 1 comment

Comments

@nzurita
Copy link

nzurita commented May 22, 2019

When paying with Paypal, after returning from offsite payment, as configured in return_url Paypal redirects user to an URL in the form:

http://example.com/order/4/approve?token=EC-1YB78xxxxxxxx&PayerID=GUxxxxxx

As stated in the docs, this will be a controller action that will do whatever, mainly, changing PaymentInstruction status from pending to success.

My question is: how can I avoid the user from calling http://example.com/order/4/approve himself and thus approve his order without paying? As far as I know I don't have anything that relates my order with Paypal return token.

@gremo
Copy link

gremo commented Sep 19, 2019

I have the same question. Doing it manually is quite simple using PayPal API (get the transaction using the token and check the result against PayPal).

How to do with this bundle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants