MozillaFoundation / donate-wagtail

[Legacy] - Wagtail based donation stack
Mozilla Public License 2.0
42 stars 22 forks source link

Single Paypal payments return 500 error #1727

Closed danielfmiranda closed 1 year ago

danielfmiranda commented 1 year ago

Describe the bug One-time paypal donations return the following error on the donate site:

Screenshot 2023-01-18 at 12-00-09 TypeError at _en-US_paypal_thank-you_

When tracing back the error, it appears that the code it is referencing is the MinimumCurrencyAmountMixin found in forms.py.

To Reproduce Steps to reproduce the behavior:

  1. Go to the donate site homepage
  2. Attempt to make a 1 time donation with paypal
  3. Note that a 500 error gets returned instead of the "success page"

Expected behavior Users should be able to use paypal to make donations successfully

cdanfon commented 1 year ago

@fessehaye please QA this ticket

danielfmiranda commented 1 year ago

@fessehaye thanks for taking on the QA for this ticket!

Steps to test:

  1. Visit https://donate-wagtail.mofostaging.net/en-US/
  2. Log into 1Password
  3. Click the blue "Paypal" button to make a one-time donation of any amount, using the "Paypal sandbox" credentials
  4. Select "CREDIT UNION 1" from the payment options, and click "Complete Purchase:
  5. If the payment goes through successfully, testing is complete!
fessehaye commented 1 year ago

Worked for me