Use cents price for Stripe

This commit is contained in:
PCoder 2020-12-24 19:40:39 +05:30
parent 1c4f297775
commit ec1da8fbdf
1 changed files with 1 additions and 1 deletions

View File

@ -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" %