MozillaFoundation / donate-wagtail

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

Can't pay using ARS #912

Closed patjouk closed 4 years ago

patjouk commented 4 years ago

To reproduce, go to staging, select ARS and try to do a payment.

https://sentry.prod.mozaws.net/operations/donate-mozilla-org/issues/7232642/

KeyError: 'ars'
(6 additional frame(s) were not displayed)
...
  File "django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "django/views/generic/edit.py", line 142, in post
    return self.form_valid(form)
  File "donate/payments/views.py", line 216, in form_valid
    return self.process_single_transaction(form, send_data_to_basket=send_data_to_basket)
  File "donate/payments/views.py", line 252, in process_single_transaction
    'merchant_account_id': get_merchant_account_id_for_card(self.currency),
  File "donate/payments/utils.py", line 94, in get_merchant_account_id_for_card
    return settings.BRAINTREE_MERCHANT_ACCOUNTS[currency]
patjouk commented 4 years ago

Same error here: https://sentry.prod.mozaws.net/share/issue/e8fb6c6209314bd4ac2ea060bbf9b59a/

cadecairos commented 4 years ago

I think this can be resolved with a config update. prod didn't have any configuration for the ARS Merchant account or the ARS subscription plan.

cadecairos commented 4 years ago

This is resolved now.