Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: Remove the bool check for dynamic_payment_methods_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed May 7, 2024
1 parent 3b8c210 commit 03c04a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecommerce/extensions/payment/processors/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def handle_processor_response(self, response, basket=None):
# pretty sure we should simply return/error if basket is None, as not
# sure what it would mean if there
payment_intent_id = response.get('payment_intent_id', None)
dynamic_payment_methods_enabled = response.get('dynamic_payment_methods_enabled', None) == 'true'
dynamic_payment_methods_enabled = response.get('dynamic_payment_methods_enabled', None)
# NOTE: In the future we may want to get/create a Customer. See https://stripe.com/docs/api#customers.

# rewrite order amount so it's updated for coupon & quantity and unchanged by the user
Expand Down

0 comments on commit 03c04a7

Please sign in to comment.