diff --git a/www/docs/api/update-card.php b/www/docs/api/update-card.php index 77a9d03ce9..bcc77e0361 100644 --- a/www/docs/api/update-card.php +++ b/www/docs/api/update-card.php @@ -12,7 +12,9 @@ } if ($_SERVER['REQUEST_METHOD'] === 'GET') { - $setup_intent = \Stripe\SetupIntent::create(); + $setup_intent = \Stripe\SetupIntent::create([ + 'automatic_payment_methods' => ["enabled" => True, "allow_redirects" => "never"], + ]); header('Content-Type: application/json'); print json_encode([ 'secret' => $setup_intent->client_secret,