From 8c72b56f6caf86d6ed67fc12c50f1d8adbdaa278 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 31 Dec 2020 21:03:24 +0530 Subject: [PATCH] Use setup_future_usage='off_session' --- utils/stripe_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/stripe_utils.py b/utils/stripe_utils.py index e7e8d9af..d04a24cb 100644 --- a/utils/stripe_utils.py +++ b/utils/stripe_utils.py @@ -524,7 +524,8 @@ class StripeUtils(object): payment_intent_obj = stripe.PaymentIntent.create( amount=amount, currency='chf', - customer=customer + customer=customer, + setup_future_usage='off_session' ) return payment_intent_obj