From ec1da8fbdfabcf0b448b1ddca6ebb88c276417bd Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 24 Dec 2020 19:40:39 +0530 Subject: [PATCH] Use cents price for Stripe --- datacenterlight/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 3c92506b..cd1de47d 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -289,7 +289,7 @@ class PaymentOrderView(FormView): # confirmation stripe_utils = StripeUtils() payment_intent_response = stripe_utils.get_payment_intent( - float(product.get_actual_price()) + int(product.get_actual_price() * 100) ) if not payment_intent_response.get('response_object'): logger.error("Could not create payment_intent %s" %