Stripe is not working with Nginx

1 replies
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
#nginx #stripe #working
  • Profile picture of the author kaufenpreis
    Banned
    You can write email to stripe with your problem. They'll respond very quickly.
    {{ DiscussionBoard.errors[9184044].message }}

Trending Topics