Skip to content

Commit

Permalink
If a group's payment was declined, we would prevent them from complet…
Browse files Browse the repository at this point in the history
…ing it because we were checking for the wrong thing. It now matches how attendee pending payments are handled.
  • Loading branch information
kitsuta committed May 14, 2024
1 parent b2034a3 commit 14f3122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uber/site_sections/preregistration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ def finish_pending_group_payment(self, session, id, txn_id, **params):
if not stripe_intent:
return {'error': "Something went wrong. Please contact us at {}.".format(c.REGDESK_EMAIL)}

if stripe_intent.latest_charge:
if not c.AUTHORIZENET_LOGIN_ID and stripe_intent.status == "succeeded":
return {'error': "This payment has already been finalized!"}

return {'stripe_intent': stripe_intent,
Expand Down

0 comments on commit 14f3122

Please sign in to comment.