So the only way I have figured out, is to have a setup where you pay twice. Once is the fee and once again to subscribe. Sort of annoying.
So in my case I wanted a $10 fee. So I did a field called paid_fee to my user and then did:
$token = Input::get('stripeToken');
Stripe::setApiKey(Config::get('services.stripe.secret'));
Stripe_Charge::create(array( "amount" => 1000,
"currency" => "usd",
"card" => $token,
"description" => "" ));
Auth::user()->paid_fee = 1;
Auth::user()->save();
Then send them back to page but with the button to subscribe this time.
Works. Just wish it was a better way.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community