diff --git a/src/Action/CancelAction.php b/src/Action/CancelAction.php index 8931fa6..d8d6a10 100644 --- a/src/Action/CancelAction.php +++ b/src/Action/CancelAction.php @@ -26,6 +26,10 @@ public function execute($request): void return; } + if (PaymentIntent::STATUS_CANCELED === $paymentIntent->status) { + return; + } + $cancelRequest = new CancelPaymentIntent($paymentIntent->id); $this->gateway->execute($cancelRequest);