I am using stripe as payment method in my website but it's not working in nginx sever i am using this code
Stripe is not working with Nginx
2
I am using stripe as payment method in my website but it's not working in nginx sever
i am using this code
include("sprite/lib/Stripe.php");
Stripe::setApiKey("sk_test_pQ4qpg5n0CzoIyWkpVjgyNj b");
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken']))
throw new Exception("The Stripe Token was not generated correctly");
Stripe_Customer::create(
array(
"description" => "abcs",
"email" => "abc@gmail.com",
"card" => $_POST['stripeToken']
)
);
header("location: thankyou.php?account=$account");
}
catch (Exception $e) {
$error = $e->getMessage();
}
token is creating successfully but facing some problem with php code, same code is working in my Apache server.
Please help me soon
i am using this code
include("sprite/lib/Stripe.php");
Stripe::setApiKey("sk_test_pQ4qpg5n0CzoIyWkpVjgyNj b");
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken']))
throw new Exception("The Stripe Token was not generated correctly");
Stripe_Customer::create(
array(
"description" => "abcs",
"email" => "abc@gmail.com",
"card" => $_POST['stripeToken']
)
);
header("location: thankyou.php?account=$account");
}
catch (Exception $e) {
$error = $e->getMessage();
}
token is creating successfully but facing some problem with php code, same code is working in my Apache server.
Please help me soon
- kaufenpreis Banned
Next Topics on Trending Feed
-
2