diff --git a/src/MetisFW/Stripe/UI/PaymentControl.php b/src/MetisFW/Stripe/UI/PaymentControl.php index 0fb13e1..8641d49 100644 --- a/src/MetisFW/Stripe/UI/PaymentControl.php +++ b/src/MetisFW/Stripe/UI/PaymentControl.php @@ -44,7 +44,7 @@ public function getTemplateFilePath() { } public function handleSuccess() { - $paymentIntentId = $this->getPresenter()->getParameter('paymentIntentId'); + $paymentIntentId = $this->getPresenter()->getParameter('paymentIntentId') ?? $this->getPresenter()->getParameter('payment_intent'); try { $paidPayment = $this->operation->handleSuccess($paymentIntentId); diff --git a/src/MetisFW/Stripe/UI/templates/PaymentControl.latte b/src/MetisFW/Stripe/UI/templates/PaymentControl.latte index 6839123..d283c18 100644 --- a/src/MetisFW/Stripe/UI/templates/PaymentControl.latte +++ b/src/MetisFW/Stripe/UI/templates/PaymentControl.latte @@ -1,9 +1,40 @@ -