forked from CGM_Public/pretix_original
Do not _handle_payment_intent() in Stripe's pending order view
This commit is contained in:
@@ -607,7 +607,7 @@ class StripeCC(StripeMethod):
|
|||||||
self._init_api()
|
self._init_api()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if 'payment_stripe_payment_method_id' in request.session:
|
if self.payment_is_valid_session(request):
|
||||||
intent = stripe.PaymentIntent.create(
|
intent = stripe.PaymentIntent.create(
|
||||||
amount=self._get_amount(payment),
|
amount=self._get_amount(payment),
|
||||||
currency=self.event.currency.lower(),
|
currency=self.event.currency.lower(),
|
||||||
@@ -807,11 +807,6 @@ class StripeCC(StripeMethod):
|
|||||||
raise PaymentException(_('We had trouble communicating with Stripe. Please try again and get in touch '
|
raise PaymentException(_('We had trouble communicating with Stripe. Please try again and get in touch '
|
||||||
'with us if this problem persists.'))
|
'with us if this problem persists.'))
|
||||||
|
|
||||||
def payment_pending_render(self, request, payment) -> str:
|
|
||||||
self._handle_payment_intent(request, payment)
|
|
||||||
|
|
||||||
return super().payment_pending_render(request, payment)
|
|
||||||
|
|
||||||
|
|
||||||
class StripeGiropay(StripeMethod):
|
class StripeGiropay(StripeMethod):
|
||||||
identifier = 'stripe_giropay'
|
identifier = 'stripe_giropay'
|
||||||
|
|||||||
Reference in New Issue
Block a user