#botbda-checkout-problem
1 messages · Page 1 of 1 (latest)
yes I'm using the checkout on a product and when the page comes up and I try to pay, it doesn't do anything
Unfortunately that isn't really more details. What does "try to pay" means, wht happens, what do you see on the screen, is this all in Test mode, do you have a clear URL I can look at, etc.
it's in test mode and when I get to the payment screen - there's a "pay" button. When I hit the "pay" button, it doesn't do anything
that's the checkout page
I'm working on it locally
so it's being called from a PHP page through this script
<?php
require 'vendor/autoload.php';
// This is your test secret API key.
\Stripe\Stripe::setApiKey('sk_test_51LYBv0Ks11D5pGt52Pvib2o2UanoIkaICTTwVaQfTAL9mPWGxYmZtNyABz9Ji4W4ozrfBzxlLrc25q1dtSrhG07X00VRJ6t467');
header('Content-Type: application/json');
$MFLID = $_REQUEST['MFLID'];
$YOUR_DOMAIN = 'http://localhost:4242/public';
$checkout_session = \Stripe\Checkout\Session::create([
'line_items' => [[
# Provide the exact Price ID (e.g. pr_1234) of the product you want to sell
'price' => 'price_1LZcocKs11D5pGt5xj4ztizI',
'quantity' => 1,
]],
'mode' => 'payment',
'success_url' => $YOUR_DOMAIN . '/new-purchase-success.php',
'cancel_url' => $YOUR_DOMAIN . '/cancel.html',
"metadata" => ["MyFantasyLeagueID" => $MFLID],
'automatic_tax' => [
'enabled' => true,
],
]);
header("HTTP/1.1 303 See Other");
header("Location: " . $checkout_session->url);
I don't
but I'm getting that on the live site as well - I was told there was a problem
I take it this is also affecting the test server
can I just turn off tax to test it