Fixes for stripe autobilling

This commit is contained in:
David Bomba 2022-10-30 19:52:32 +11:00
parent 602b6a6f38
commit 3ec81ea04b

View File

@ -137,6 +137,9 @@ class Charge
return false; return false;
} }
if($response?->status != 'succeeded')
$this->stripe->processInternallyFailedPayment($this->stripe, new \Exception('Auto billing failed.',400));
if ($cgt->gateway_type_id == GatewayType::SEPA) { if ($cgt->gateway_type_id == GatewayType::SEPA) {
$payment_method_type = PaymentType::SEPA; $payment_method_type = PaymentType::SEPA;
$status = Payment::STATUS_PENDING; $status = Payment::STATUS_PENDING;