Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- $charge = Stripe::charges()->create([
- 'source' => $input['token'],
- 'currency' => 'USD',
- 'amount' => $amount, // amount in cents
- "description" => "Barter plan"
- ]);
- } catch (\Exception $e) {
- return Response::json(['success'=>0, 'msg'=>$e->getMessage(), 'type'=>$e->getErrorType()],$e->getCode());
- }
Add Comment
Please, Sign In to add comment