Skip to content

Commit

Permalink
Stripe upgrade 2023-08-16.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jun 21, 2024
1 parent 99651c8 commit c2af846
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/docs/api/update-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c2af846

Please sign in to comment.