Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 4th May 2014, 08:39 AM   #1
Active Warrior
 
Join Date: 2011
Posts: 44
Thanks: 3
Thanked 1 Time in 1 Post
Default
Stripe is not working with Nginx
Share on: 
fb share twitter share gplus share more share

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

lovefax89 is offline  
Unread 12th May 2014, 03:09 PM   #2
Banned
 
Join Date: 2014
Posts: 73
Thanks: 2
Thanked 12 Times in 10 Posts
Default
Re: Stripe is not working with Nginx
Share on: 
fb share twitter share gplus share more share

You can write email to stripe with your problem. They'll respond very quickly.
kaufenpreis is offline  
Closed Thread


Bookmarks

Tags
nginx, stripe, working


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:29 AM.