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

Validate amount charged with PayPal #37

Closed
seand7565 opened this issue Jun 17, 2020 · 0 comments
Closed

Validate amount charged with PayPal #37

seand7565 opened this issue Jun 17, 2020 · 0 comments

Comments

@seand7565
Copy link
Contributor

Because we're possibly changing the users address (and order total) after the payment has been created, we need to validate that PayPal has charged what we've told them to charge, and that the order total - given the new address - also matches that amount. If not, we should either:

  • Invalidate/void the payment and redirect the user to the payment page again
    -or-
  • Change the payment total and let Solidus handle the rest (if it's not enough it'll ask for more payment, if it's more it'll tell admin to refund)
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

1 participant