So I am trying to set up a payment system on my site. I have passed a variable dollar amount to stripe. after I have processed my payment and try to redirect to finish my order I lose my session and am on a empty white page. I have tried to enter the charger into the finish order script but am still missing session info I think? I know I am vague but does any body work with stripe here. Does any body know a pretty solid easy to use payment solution they can suggest? This is where I lose my session in stripe charger.php
<?php
require_once(dirname(__FILE__) . 'config.php');
$token = $_POST['stripeToken'];
$customer = Stripe_Customer::create(array(
'email' => 'customer@example.com',
'card' => $token
));
$charge = Stripe_Charge::create(array(
'customer' => $customer->id,
'amount' => 5000,
'currency' => 'usd'
));
echo '<h1>Successfully charged $50.00!</h1>';
?>
I know I am asking questions like always sorry. But it would so rock to get this done
<?php
require_once(dirname(__FILE__) . 'config.php');
$token = $_POST['stripeToken'];
$customer = Stripe_Customer::create(array(
'email' => 'customer@example.com',
'card' => $token
));
$charge = Stripe_Charge::create(array(
'customer' => $customer->id,
'amount' => 5000,
'currency' => 'usd'
));
echo '<h1>Successfully charged $50.00!</h1>';
?>
I know I am asking questions like always sorry. But it would so rock to get this done