Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

wiznox's avatar

Stripe payment gateway using laravel cashier single time payment

How to solve this problem ​



 $user = Auth::user();
        try {
            $subscription = $user->charge(100, $request->payment_method);
        } catch (Exception $e) {
            dd($e);
        }
        dd($subscription);

As per Indian regulations, export transactions require a description. More info here: https://stripe.com/docs/india-exports

0 likes
3 replies
wiznox's avatar

This is not my answer please try again :)

hiteshchauhan's avatar

$user->charge(100, $paymentMethod,[ 'customer' => $customer->id, 'currency' =>'usd', 'description' =>'test' ]);

Please or to participate in this conversation.