diff --git a/CRM/Stripe/AJAX.php b/CRM/Stripe/AJAX.php
index 18c6f8220dccafb6d642e5b010ca10315284e364..397aca6e826be9116cdd9d1f70da74397cabfbc0 100644
--- a/CRM/Stripe/AJAX.php
+++ b/CRM/Stripe/AJAX.php
@@ -16,7 +16,7 @@ class CRM_Stripe_AJAX {
    * @throws \CiviCRM_API3_Exception
    */
   public static function confirmPayment() {
-    $paymentMethodID = CRM_Utils_Request::retrieveValue('payment_method_id', 'String', NULL, TRUE);
+    $paymentMethodID = CRM_Utils_Request::retrieveValue('payment_method_id', 'String');
     $paymentIntentID = CRM_Utils_Request::retrieveValue('payment_intent_id', 'String');
     $amount = CRM_Utils_Request::retrieveValue('amount', 'Money', NULL, TRUE);
     $currency = CRM_Utils_Request::retrieveValue('currency', 'String', CRM_Core_Config::singleton()->defaultCurrency);
@@ -26,9 +26,7 @@ class CRM_Stripe_AJAX {
 
     if ($paymentIntentID) {
       $intent = \Stripe\PaymentIntent::retrieve($paymentIntentID);
-      $intent->confirm([
-        'payment_method' => $paymentMethodID,
-      ]);
+      $intent->confirm();
     }
     else {
       try {