mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
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()
|
||||
|
||||
try:
|
||||
if 'payment_stripe_payment_method_id' in request.session:
|
||||
if self.payment_is_valid_session(request):
|
||||
intent = stripe.PaymentIntent.create(
|
||||
amount=self._get_amount(payment),
|
||||
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 '
|
||||
'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):
|
||||
identifier = 'stripe_giropay'
|
||||
|
||||
Reference in New Issue
Block a user