#ashadchempakath

1 messages · Page 1 of 1 (latest)

tropic pewter
#

Sounds like a parameter error. Could you give me the request Id (req_xxx) please?

reef vortex
#

"source" => $request->stripeToken is this it?

azure void
#

@reef vortex if you get that error then $request-stripeToken is null

reef vortex
#

I tested it in local $request-stripeToken is not null, but in server side its null

#

Stripe::setApiKey(env('STRIPE_SECRET'));
Charge::create ([
"amount" => (int)($request->price * 100),
"currency" => "aed",
"source" => $request->stripeToken,
"description" => "This payment is tested purpose phpcodingstuff.com"
]);

azure void
#

then you'd have to debug why it's null

#

I'd suggest adding some logging! like I said though, this code is all completely legacy and you shouldn't even be writing it, you should use our current integrations of Checkout or PaymentIntents.

reef vortex
#

can you send me the link