#### Category : stripe-payments

I’m trying to implement Stripe as payment method and I can’t get the value of the stripeToken after submiting the paymente form. I been trying for hours figuring it out, with no success. I don’t understand much of JS so I don’t know if the problem is there. But it shouldn’t be, since I saw ..

Must provide source or customer. laravel 8 stripe payment gateway StripeController public function stripe() { return view(‘stripe’); } public function stripePost(Request $request) { StripeStripe::setApiKey(env(‘STRIPE_SECRET’)); StripeCharge::create ([ "amount" => 100*100, "currency" => "INR", "source" =>$request->stripeToken, "description" => "This payment is testing purpose of websolutionstuff.com", ]); Session::flash(‘success’, ‘Payment Successful !’); return back(); } Sourc..

I am using Stripe Checkout(Payment intent) method in my Laravel site to get the payment from the customers and then add order to database using webhook. what if i have error inside webhook while inserting to database or any error like soldout, in this case the customer will pay but the order will not be ..

really struggling to find the error where i missed. I am using Laravel (v8), Vue (v2) and Stripe(v3) for my e-commerce web-app. I implemented stripe in TEST mode successfully and it was working perfectly fine. And when I switched for live mode I am getting the following error: No such PaymentMethod: ‘pm_1Yyl5xC4bpPAffpGV2p0ZL12’. Front and backend ..

I have registered the job under: ‘jobs’ => [ ‘charge_succeeded’ => AppJobsStripeWebhooksChargeSucceeded::class // ‘source_chargeable’ => AppJobsStripeWebhooksHandleChargeableSource::class, // ‘charge_failed’ => AppJobsStripeWebhooksHandleFailedCharge::class, ], And in the class: class StripeWebHooksChargeSucceeded implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; public $webHookCall; /** * Create a new job instance. * * @return void */ public function __construct(WebhookCall$webHookCall) { $this->webHookCall .. Read more I am using laravel cashier for an application where the user can subscribe in 3 ways Montly Yearly One time I am using create for Monthly and Yearly subscriptions and charge for one time. The problem is I am not able to pass External Accounts details to the charge method(the amount should credit to this .. Read more I am struggling for a long period of time to implement Stripe in my Laravel app, but I’ve encountered a lot of problems. I did somehow implemented the logic but I cannot or I don’t know how I can send the current order total to create the paymentIntent, all of the payments are stored with .. Read more I’m trying to save and retrieve stripe customer id for future charges, I use payment intent and so far everything works fine, I can charge a customer and attach the card, but I don’t know how to retrieve the customer id outside of the payment intent function. this is the payment intent code where I .. Read more I have built a website and integrated stripe elements to it with payment intent … and I would like to activate a subscription to a user whenever the server get a charge.succeeded event from stripe webhook. I have this code that get the unpaid subscription ID of each user and it’s written on the payment .. Read more I am creating a stripe checkout session for my subscription based product price like this.$request->user()->createOrGetStripeCustomer(); $array = [ ‘customer’ =>$request->user()->stripe_id, ‘payment_method_types’ => [‘card’], ‘line_items’ => [[ ‘price’ => $plan->stripe_plan, ‘quantity’ => 1, ]], ‘mode’ => ‘subscription’, ‘success_url’ => route(‘success’), ‘cancel_url’ => route(‘cancel’), ]; StripeStripe::setApiKey(‘sk_test_KEY’);$session = StripeCheckoutSession::create($array); On the view, I am redirecting .. Read more { "id": "tok_1IsT8kEsWwtF0krez5cw74gI", "object": "token", "card": { "id": "card_1IsT8kEsWwtF0kre4Fq0ChK1", "object": "card", "address_city": null, "address_country": null, "address_line1": null, "address_line1_check": null, "address_line2": null, "address_state": null, "address_zip": null, "address_zip_check": null, "brand": "Visa", "country": "PK", "cvc_check": "unchecked", "dynamic_last4": null, "exp_month": 2, "exp_year": 2023, "fingerprint": "rLiMzo6zB4GQuv57", "funding": "debit", "last4": "8403", "metadata": { }, "name": null, "tokenization_method": null }, "client_ip": "199.188.200.224", .. Read more I integrated stripe elements with laravel 5.7 to collect subscriptions and everything seems to be working just fine, but when I set the webhooks to activate subscription after a successful payment, it doesn’t work and I get this error in stripe: " Call to a member function start() on null in file — " public .. Read more Cashier Version: "^12.13" Laravel Version: "^8.0" PHP Version: "^7.3" Hi There!, I have been wrote a code for create and active subscription plan using "Laravel cashier (stripe)" and It’s working good but I want to add some conditions like "I want to active this plan only for 5 month". In the stripe documentation we can .. Read more I am using Laravel 5.8 the server quickstart example to send a user to Stripe to make a payment. I need to create a solution for users to buy credits. https://stripe.com/docs/checkout/integration-builder My HTML: <form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search"> <div class="input-group"> <div class="input-group-append"> <button id="checkout-button" class="btn btn-danger" type="button"> Buy Credits </button> .. Read more I’ve run command ‘composer require stripe/stripe-php’ I am getting this error —- Class ‘Stripe’ not found. Here’s my controller- namespace AppHttpControllers; use IlluminateHttpRequest; use Validator; class StripeController extends Controller { public function stripePost(Request$request) { StripeStripe::setApiKey ( ‘sk_test_51IqDEDyMvZ4TU4ArtfN0olk7c9oXEGgATFIueO8SIEmrTv3vZFEMgBXOy4wNNCCSA4lueR84PyEwbzpp6W2QW’ ); try { StripeCharge::create ( array ( "amount" => $request->amount * 100, "currency" => "usd", "source" => .. Read more I am new to laravel cashier, and I am stuck here. For my games, users can subscribe. I have 3 subscription methods. Monthly Yearly One-time. For monthly and Yearly subscriptions, I have used the below code and it works perfectly.$subscription = $user->newSubscription($subscriptionName, $plan->stripe_id)->withMetaData([‘game’ =>$game->name])->create(null, [ ’email’ => $user->email, ‘name’ =>$user->name, [‘metadata’ => ..

Context: Laravel 5.5 Stripe Payment Form with cartalyst/stripe BookingController return the view with the PaymentIntent associated with the logged in user. If the user use the mouse to click "PAY" all is working fine (error check and successful payment). But when he clicks enter on the keyboard the form is submitted also with empty values. ..

I’m trying to get client_secret to be used in Mobile device to make stripe payment successful. Here is the code how I’m calling Intent StripeStripe::setApiKey(‘KEY_HERE’); try { $intent = StripePaymentIntent::create([ ‘amount’ => 109, ‘currency’ => ‘usd’, ]);$client_secret = $intent->client_secret; return response()->json([ ‘success’ => true, ‘client_secret’ =>$client_secret, ‘message’ => null ]); } catch (CardException ..

I am following Laravel’s Cashier on SCA and can see that Striple handles "3D Secure" payment verifications for you. The issue I have is that the payment works fine, however, the Laravel user is never updated to be on that subscription because of the redirect back to Stripe. Route::post(‘/dashboard/payment/subscribe’, function (Request $request) {$request->user()->updateDefaultPaymentMethodFromStripe(); if ..

I want to integrate stripe payment in react native. Application’s back-end is in Laravel. This is what I came to know. We send amount, currency to the back-end that Intents Stripe payment and return a client_secret that is used in react native to send it to stripe and made payment successful. This was the controller ..

I bought an application that uses Laravel Cashier Stripe to manage subscription payments, but it is duplicating payments and subscriptions for new users, does anyone know how to solve this problem? Sourc..

Please anyone here to help, I am going to integrate stripe subscription in Laravel it is working with my one of account perfectly but when I using other stripe account api’s key then so then getting this terrible issue don’t why this is occurring, so please help me out in this issue. Sourc..