Use cents price for Stripe

This commit is contained in:
PCoder 2020-12-24 19:40:39 +05:30
parent 1c4f297775
commit ec1da8fbdf

View file

@ -289,7 +289,7 @@ class PaymentOrderView(FormView):
# confirmation # confirmation
stripe_utils = StripeUtils() stripe_utils = StripeUtils()
payment_intent_response = stripe_utils.get_payment_intent( 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'): if not payment_intent_response.get('response_object'):
logger.error("Could not create payment_intent %s" % logger.error("Could not create payment_intent %s" %