Use cents price for Stripe
This commit is contained in:
parent
1c4f297775
commit
ec1da8fbdf
1 changed files with 1 additions and 1 deletions
|
@ -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" %
|
||||||
|
|
Loading…
Reference in a new issue