Stripe payment

Status
Not open for further replies.

qnsecomx

New Member
Messages
9
Reaction score
0
Points
1
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:)
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
Try session_start() first thing in your code.
By the way, wrong forum. :lol:
 
Status
Not open for further replies.
Top