| | #1 |
| Active Warrior Join Date: 2011
Posts: 44
Thanks: 3
Thanked 1 Time in 1 Post
|
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 |
| | |
| |
| | #2 |
| Banned Join Date: 2014
Posts: 73
Thanks: 2
Thanked 12 Times in 10 Posts
|
You can write email to stripe with your problem. They'll respond very quickly.
|
| |
|
| Bookmarks |
| Tags |
| nginx, stripe, working |
| |