Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

Jam0r's avatar

Stripe - record invoice paid?

I'd like to use Stripe to manage the invoices and subscriptions of an app however I know that there will be clients who will pay by UK bank transfer, cheque or cash. Since Stripe does not accept these payments, is there an option to manually mark an invoice as paid? I've looked on the testing dashboard and cannot find anything.

Jam0r's avatar
Jam0r's avatar Jam0r8yrs agoGeneral
0
1
tptompkins's avatar

"Free for X Months" type discount with Stripe

Hello, I'm trying to create a "Free for X Months" type discount in Stripe but anytime I try to plug in the discount code into my Spark app an error occurs behind the scenes. If I look at the logs in my Stripe account, I can see the following error: { "error": { "type": "invalid_request_error", "message": "Coupon

tptompkins's avatar
tptompkins's avatar ejdelmonic...8yrs agoSpark
3
1
Last reply by ejdelmonico 8yrs ago
daugaard47's avatar

For Hire: Add Stripe Transaction Fees to Variable Amount Entered

I have a very small project I’m trying to complete, but stuck on a JS section. Willing to pay by PayPal. (Normally I would try and figure it out, but don't have the time at the moment and need to move forward with the project.) It’s for a donation system. I need to give the donor the ability to GIFT the Stripe / PayPal transaction fees so the non-profit gets 100% of the donatio

daugaard47's avatar
daugaard47's avatar daugaard478yrs agoGeneral
0
1
tptompkins's avatar

100% Off Coupon with Stripe doesn't work all that great

Hello, I'm still on an older Laravel 5.2 installation with Spark version 1.0.14 and I tried creating a 100% off "forever" coupon in Stripe and using that coupon with a monthly plan. After doing so, I received the following error from Stripe behind the scenes: { "error": { "type": "invalid_request_error", "message": &

tptompkins's avatar
tptompkins's avatar ejdelmonic...8yrs agoSpark
3
1
Last reply by ejdelmonico 8yrs ago
ashraf1973's avatar

Stripe plan upgrade problem

I am using "laravel/cashier": "~6.0" in my application. I have two stripe plan . When i try to upgrade my plan its show this error: https://user-images.githubusercontent.com/24843288/36137696-9dcfc60c-10c0-11e8-8742-1158aa3610a7.png

ashraf1973's avatar
ashraf1973's avatar vmitchell8...8yrs agoLaravel
1
1
Last reply by vmitchell85 8yrs ago
skoobi's avatar

How to test Stripe vue component

Hi, Im just going through the Dusk testing tutorials and trying to implement it into my project, but i'm trying to figure out how to test the Vue component for Stripe (from the laracasts) I tried ->clickLink('Subscribe') but it doesn't recognise it. Any help would be greatful. Many thanks

skoobi's avatar
skoobi's avatar skoobi8yrs agoTesting
0
1
krishna9720's avatar

Stripe Error Must provide source or customer laravel and Stripe token response null

Hi experts, I integrate stripe payment gateway to my laravel application Below is the code snippets. ProductController.php public function postCheckout(Request $request) { if (!Session::has('cart')) { return redirect()->route('shoppingcart'); } $oldCart = Session::get('cart'); $cart = new Cart($oldCart); Stripe::setApiKey

krishna9720's avatar
krishna9720's avatar mstrauss6yrs agoCode Review
2
1
Last reply by mstrauss 6yrs ago
scottybowl's avatar

Catch Stripe Cashier errors when on queue

We're running a Job via a queue which sends a charge to Stripe, but the try/catch approach in the Job isn't capturing the error, instead the error gets thrown in ApiRequester which prevents the job from proceeding. Stripe\Error\Card: Your card has insufficient funds. in /home/forge/****/vendor/stripe/stripe-php/lib/ApiRequestor.php:128 from API request 'req_*/**' Snippet from

scottybowl's avatar
scottybowl's avatar scottybowl8yrs agoLaravel
0
1
Xation's avatar

[Redis] Stripe Webhook almost at the same time. I need to use funnel ?

Hello, I'm using stripe webhook and a lot of time stripe send webhook in a short time difference (18-01-16 19:54:31 and 18-01-16 19:54:28). So sometime the newest webhook is executed by laravel horizon (redis) before the oldest. So my db is not sync with stripe. I have to use funnel inside my job ? https://laravel.com/docs/5.5/queues#rate-limiting Redis::funnel('key')->limit

Xation's avatar
Xation's avatar burlresear...8yrs agoLaravel
1
1
Last reply by burlresearch 8yrs ago
wearecontrast's avatar

Subscribe to Free plan in Stripe

Hey, I'm trying to get Spark to subscribe a User to a free plan in Stripe. Here's my SparkServiceProvider::booted Spark::useStripe(); Spark::plan('Basic', 'basic-yearly')->yearly(); Spark::plan('Pro', 'pro-yearly')->price(19)->yearly(); By default, Spark only subscribes the user in Stripe if the plan has a price greater than 0. I'm trying to figure out what events/cl

wearecontrast's avatar
wearecontrast's avatar wearecontr...8yrs agoSpark
4
1
Last reply by wearecontrast 8yrs ago
kvnkrft's avatar

Stripe Question

I'm trying to follow the Laracasts video for stripe (https://laracasts.com/lessons/painless-subscriptions-with-laravel-and-stripe), but "my button" does not open a Stripe checkout modal, but rather redirects to the action. There also is no data in the $request on the other side. I'm guessing my issue is related to VUE stuff - which I haven't touched at all and find to

kvnkrft's avatar
kvnkrft's avatar martinbean8yrs agoLaravel
4
1
Last reply by martinbean 8yrs ago
pifoux2000's avatar

Set stripe keys dynamically with cashier

Hello, I have two different stripe accounts, one for euro zone and another one for the rest of the world, would anyone know how to set dynamically both secret and live keys dynamically before making a transaction? I tried to use the setStripeKey() method from the Billable trait without success. Many thanks.

pifoux2000's avatar
pifoux2000's avatar pifoux20008yrs agoLaravel
0
1
Mick79's avatar

Stripe docs on laravel.com

I've implemented stripe several times on non-caravel setups. I believe I know the system and how it works pretty well. However I've just been spending some time on the laravel.com docs reading about teh cashier integration and I feel pretty let down. The documentation is written in a really confusing way. First off it tells you how to install all the required dependencies and g

Mick79's avatar
Mick79's avatar aurawindsu...8yrs agoGeneral
7
84
Last reply by aurawindsurfing 8yrs ago
zakdave's avatar

Stripe Webhook not firing

I have setup webhook in stripe to test failed payments using laravel cashier as documented in laravel https://laravel.com/docs/5.5/billing#handling-stripe-webhooks (bypassed the CASHIER_ENV === 'testing' mode ) but seemed to be customer.subscription.deleted event is not fired after trail period end of the subscription .(manually triggered subscription trail_end) also followed t

zakdave's avatar
zakdave's avatar zakdave8yrs agoLaravel
0
1
matt_panton's avatar

Best way to test creating charges with Stripe?

I'm working on a project that requires me to take payments using Stripe. I'm writing some feature tests to check that card declines are handled correctly and I'm currently using the JacobBennet/StripeTestToken to generate fake tokens. The problem is that it's slow to generate these tokens, especially when there's around 10 being generated in my test suite. What's the best way t

matt_panton's avatar
matt_panton's avatar matt_panto...8yrs agoTesting
0
1
theUnforgiven's avatar

Using Stripe as two instances....

Hi all, I wanting to use Stripe to charge for a SaaS app, but also allow the users who have an account by able to use Stripe also to charge their customers. Is there a valid way to achieve this? With out having conflicting stripe keys :)

theUnforgiven's avatar
theUnforgiven's avatar theUnforgi...8yrs agoGeneral
3
1
Last reply by theUnforgiven 8yrs ago
rap2h's avatar

Laravel + Stripe Connect

I created a helper package for Stripe Connect. It's a WIP, feel free to criticize, ask for improvement, etc. I use it in my own projects. Link: https://github.com/rap2hpoutre/laravel-stripe-connect

rap2h's avatar
rap2h's avatar Yamen7yrs agoGeneral
1
1
Last reply by Yamen 7yrs ago
tjnapster555@gmail.com's avatar

how to stop user to pay same order twice in stripe ?

Hi i create the stripe form of payment and then make a create request in laravel now if the user press back in browser and then click on pay he charge again how i can prevent this from happening again i try to use this \Stripe\Charge::create(array( "amount" => 434 * 100, "currency" => "pkr", &q

tjnapster555@gmail.com's avatar
tjnapster555@gmail.com's avatar martinbean8yrs agoGeneral
1
1
Last reply by martinbean 8yrs ago
zakdave's avatar

Stripe Subscription Expired

I have setup webhook in stripe to test failed payments using laravel cashier as documented in laravel https://laravel.com/docs/5.5/billing#handling-stripe-webhooks (bypassed the CASHIER_ENV === 'testing' mode ) but seemed to be customer.subscription.deleted event is not fired after trail period end of the subscription .(manually triggered subscription trail_end) also followed

zakdave's avatar
zakdave's avatar zakdave8yrs agoLaravel
0
1
falko100's avatar

Non creditcard payments using Stripe

Hi, I have been looking into Spark for my next big project and it looks amazing! So much work already done. The only thing I can't figure out is if it is possible to add other payment methods, such as SEPA or iDeal to the application. These are available in Stripe and I wonder if they can be added to Spark as well. Can anyone tell me if it is possible and how ? Thanks in advanc

falko100's avatar
falko100's avatar Cronix8yrs agoSpark
3
1
Last reply by Cronix 8yrs ago
marcoCarcangiu's avatar

exeption: You cannot use a Stripe token more than once....

I am using https://github.com/amsgames/laravel-shop with omypay/stripe extension. When I get to the checkout I always get the following erro: "You cannot use a Stripe token more than once:....................." My code is as following: if (!Cart::current()->count) { throw new Exception('Cannot checkout, no items in cart.'); } //Set gateway

marcoCarcangiu's avatar
marcoCarcangiu's avatar marcoCarca...8yrs agoLaravel
0
1
bwoogie's avatar

Laravel app.js stops Stripe payment form from showing

I'm trying to accept payments with Stripe. I got the code from the Stripe documentation and added it to a view. When I click the button it doesn't show the form, but instead goes to the form action page (payments). <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-U

bwoogie's avatar
bwoogie's avatar bwoogie8yrs agoLaravel
1
1
Last reply by bwoogie 8yrs ago
developre's avatar

Payment using Stripe in Multi tenancy

Does stripe supports multi tenancy? And how they handle this? Thanks in advance.

developre's avatar
developre's avatar gregrobson8yrs agoLaravel
1
1
Last reply by gregrobson 8yrs ago
htchtc052's avatar

Subscriptions management and testing with laravel and stripe dashboard questions

I tested web site subscriptions users through stripe. Website uses php laravel 5.5 with cashier on linux server. If I perform some actions with users and their subscriptions from my stripe dashboard. Should I, for each such action, process webhook on my server? Without this change will not be reflected in my database? Manual says that for most actions, webhook are not needed.

htchtc052's avatar
htchtc052's avatar janderson8yrs agoLaravel
1
1
Last reply by janderson 8yrs ago
skattabrain's avatar

Cashier & Stripe - charge() versus invoiceFor()

Hi All, Probably a covered question, maybe I didn't look hard enough. What is the difference between charge versus invoiceFor? I'd like to use this API to 1 time charge a customer for something but NOT have Stripe automatically try to hit the card again in a few days if it fails like invoiceFor will. I got a surprise where I thought because it failed, that was it... but days la

skattabrain's avatar
skattabrain's avatar skattabrai...8yrs agoGeneral
0
1
aurawindsurfing's avatar

Stripe - how to protect amount variable while POSTing to server side

Hi everyone, I'm wondering how do you approach passing stripe amount variable from checkout.js to server side please? Yes I know I do not have to do that but since I have 5 stripe buttons and each one has different amount I figure that it makes no sense to build separate routes for each of the charges... Correct me if I'm wrong but: if I pass - it can be manipulated by user if

aurawindsurfing's avatar
aurawindsurfing's avatar Cronix8yrs agoTips
3
1
Last reply by Cronix 8yrs ago
ajck's avatar

How to integrate Stripe Checkout with Laravel (5.4) Cashier?

Hi, I'd like my site visitors to be able to sign up to one of three simple subscription plans, paying with a credit/debit card. I've set up Laravel Cashier on the back end, and the default Stripe Checkout on the frontend, and am now just trying to finish the back end Laravel code to tie the two together. I've been following an example Stripe 'recipe' and am looking at the bit w

ajck's avatar
ajck's avatar martinbean8yrs agoLaravel
4
2
Last reply by martinbean 8yrs ago
hellomars's avatar

[Stripe] How do I check if a creditcard is attached?

Hi spark (or cashier) developers, I am playing around with a Spark setup and Stripe and most of the stuff is working quite well. I can add an credit card as well as start subscriptions. However, I also want users to be able to pay single payments. If a credit card has been entered, the $user->charge(100); command works perfect. However, in my single payment view I would like

hellomars's avatar
hellomars's avatar hellomars8yrs agoSpark
4
1
Last reply by hellomars 8yrs ago
dascorp's avatar

Stripe initiate HTTPS connections with TLS 1.2

I have one app running on L5.2, for some reason on Laravel Valet I am getting Stripe no longer supports API requests made with TLS 1.0. Please initiate HTTPS connections with TLS 1.2 or later. You can learn more about this at https://stripe.com/blog/upgrading-tls., Same app on docker or on forge works well. I also checked fresh install of L5.4 with stripe on Valet and have no p

dascorp's avatar
dascorp's avatar dascorp8yrs agoGeneral
10
9
Last reply by dascorp 8yrs ago
melker's avatar

ReferenceError: Stripe is not defined

Hey! Having some trouble with my Spark app. First discovered when trying to accept an invite. I'm getting an error like: app.js:43146 [Vue warn]: Error in mounted hook: (found in <SparkUpdatePaymentMethodStripe>) warn @ app.js:43146 handleError @ app.js:44031 callHook @ app.js:44863 insert @ app.js:45536 invokeInsertHook @ app.js:47536 patch @ app.js:47700 Vue._update @

melker's avatar
melker's avatar sman6yrs agoSpark
3
16
Last reply by sman 6yrs ago
ashish.135's avatar

InvalidRequest: This customer has no attached payment source in stripe cashier.

I'm getting this error. On stripe account I have already create plans for users. InvalidRequest This customer has no attached payment source in ApiRequestor.php (line 124) at ApiRequestor::_specificAPIError('{ "error": { "type": "invalid_request_error", "message": "This customer has no attached payment source" }}', 400, array('S

ashish.135's avatar
ashish.135's avatar martinbean8yrs agoLaravel
1
1
Last reply by martinbean 8yrs ago
lewisbhs's avatar

Laravel Spark: Stripe

I've been having a few problems with Laravel Spark, I've decided to rewrite my application this time but decided to opt for Stripe rather than BrainTree. I've registered a stripe account, and added my plans however spark is returning: "We had trouble validating your card. It's possible your card provider is preventing us from charging the card. Please contact your card pro

lewisbhs's avatar
lewisbhs's avatar possiblewe...6yrs agoSpark
5
1
Last reply by possibleweb 6yrs ago
ATXProgrammer's avatar

Changing Stripe Plans in Cashier?

When you change plans in Cashier with "swap," it seems like it's creating a new Stripe invoice immediately and charging the customer right away, if the new plan is more expensive, and prorating the customer if its a cheaper plan. This is fine, but the documentation does not explain what's happening at all. Is my observation correct? https://laravel.com/docs/5.4/billin

ATXProgrammer's avatar
ATXProgrammer's avatar ATXProgram...8yrs agoLaravel
0
1
murph133's avatar

Spark > Cashier > Stripe > Subscriptions: Changing the default address country

The default subscription country for Stripe is US. I want to change this to GB - for the United Kingdom, where all of my customers are based. I have tried to customise this by changing a few view files that were hardcoded with the "US" as the default country. I ran "npm run dev" after every edit. No change in the Stripe logs for the new subscriptions I set u

murph133's avatar
murph133's avatar Kel_7yrs agoSpark
3
1
Last reply by Kel_ 7yrs ago
stubbzj12's avatar

Stripe checkout keeps redirecting me to action

Hi. I'm not sure why, but when using the Stripe checkout button example, it redirects me to the form action instead of opening the checkout Modal. Any ideas why? Thanks.

stubbzj12's avatar
stubbzj12's avatar stubbzj128yrs agoLaravel
0
1
mikefolsom's avatar

Submitting a Stripe Checkout form with Vue, hidden elements are null

I'm attempting a pretty simple Stripe Checkout flow with Vue. I have a form serving as the root element, with three buttons, each of which will select a particular subscription plan. Things seem to be working fine until the form is actually submitted. The hidden elements stripe_token and stripe_email come through with null values, even though they are being updated via v-model

mikefolsom's avatar
mikefolsom's avatar mikefolsom8yrs agoVue
1
1
Last reply by mikefolsom 8yrs ago
digitalagua's avatar

Cashier and Stripe

I am in the process of adding subscriptions with Laravel Cashier and Stripe to my website. I know Cashier handles some basic webhooks for cancelling subscriptions. Cashier automatically handles subscription cancellation on failed charges, but if you have additional Stripe webhook events you would like to handle, simply extend the Webhook controller. This is the first time I h

digitalagua's avatar
digitalagua's avatar digitalagu...8yrs agoGeneral
3
1
Last reply by digitalagua 8yrs ago
Hamed's avatar

Stripe & Cashier Not Avalable

Hi Guys In My Country Stripe & Cashier Not Available And I Can't Use Them. I Gonna Create Subscription Plane On My Own Laravel WebSite. Have You Any Solution For This Problem ? Best Regards

Hamed's avatar
Hamed's avatar Hamed8yrs agoLaravel
4
1
Last reply by Hamed 8yrs ago
alanstorm's avatar

Does Laravel Spark Support Stripe Quantities?

In Laravel Spark, (it's my understanding) you can tie your billing plan to a billing plan already setup in Stripe with code that looks something like this Spark::plan('Basic', 'provider-id-1') ->price(10) ->features([ 'First', 'Second', 'Third' ]); where provider-id-1 is the Stripe ID of you billing plan. The 10 listed as price is

alanstorm's avatar
alanstorm's avatar alanstorm8yrs agoSpark
0
1
SteamDiesel's avatar

(SOLVED) Stripe Error with Spark - did not set a valid publishable key

Hey Team, When I enter a credit card number (both test and my own) and try to submit for a subscription, using both the test API keys and my live API keys, in both my homestead and on the live forge server, I get the following error in my console: js.stripe.com/:3 Uncaught Error: You did not set a valid publishable key. Call Stripe.setPublishableKey() with your publishable key.

SteamDiesel's avatar
SteamDiesel's avatar SteamDiese...8yrs agoSpark
1
1
Last reply by SteamDiesel 8yrs ago
bheath's avatar

Dusk and Stripe

I can't seem to get Dusk to work with Stripe. The modal shows up, but it's not being detected and I can't find how to enter data in the fields. Has anyone got this working?

bheath's avatar
bheath's avatar whitenazgu...7yrs agoTesting
4
1
Last reply by whitenazgul 7yrs ago
user224564's avatar

Stripe in Laravel and Mobile

I am working on a project about payments with stripe, I have done the Api for mobile with Laravel. I have also done a admin panel to watch and manage the data of the mobile. Now what I need to do is set payments for mobile stripe. Can u help me on the idea now, do i need to create Api for mobile to make payments like on a website stripe payments or mobile can use stripe api and

user224564's avatar
user224564's avatar user2245648yrs agoLaravel
0
1
QuentinLozach's avatar

Laravel cashier + Stripe : creating a plan with quantity and decreasing prices

Hello everyone, I'm whiling for one of my project to create a subscription system with Laravel Cashier and Stripe. We will offer one plan to our users : 10€ / month for one location (they can add locations in the system) and for 75 followers. What I want to do, is to make them pay more for locations : 2.5€ / locations / month for example, so this can be achieve with quantities

QuentinLozach's avatar
QuentinLozach's avatar QuentinLoz...8yrs agoLaravel
0
1
Colin_Laws's avatar

Saving card data in Stripe with Cashier and charging later

I have been reading the Cashier docs, and I see how to implement Stripe using Cashier easily (and have already done so); however, I am confused about how I am suppose to be charging my customers. My software's payment model is of a typical SaaS app in which a user sets their pricing tier (this will be the quantity of users they may add to their SaaS instance, so quantity is req

Colin_Laws's avatar
Colin_Laws's avatar Colin_Laws8yrs agoLaravel
0
1
ralphmorris's avatar

Stripe Webhook pushing email onto queue. Failed jobs not adding to failed_jobs table

I wonder if anyone has experienced this before? I'm using Laravel Cashier with Stripe, hosted on Digital Ocean with Forge and have a webhook set up for invoice.payment.failed which sends then an email to the user. The email is put onto a queue to send with the payload. I have the failed_jobs table set up and works with other forms that send mail on the site if I force the job t

ralphmorris's avatar
ralphmorris's avatar ralphmorri...9yrs agoLaravel
1
1
Last reply by ralphmorris 9yrs ago
Dusted's avatar

Stripe webhook

I'm using laravel 5.1 and Cashier 5.0. i'm trying to test stripe webhook but im getting the following error when i try to pass test payload. $this->post('stripe/webhook',[ "id" => "evt_00000000000000", "type" => "customer.subscription.deleted", "data" => [ &

Dusted's avatar
Dusted's avatar Dusted9yrs agoTesting
0
1
charlieBrown's avatar

[Stripe] modal popup not showing up

I'm a new guy to Laravel and I can't understand why the modal popup from Stripe is not showing up when I click on the Pay with card. Routes /* * Stripe get checkout */ Route::get('products', 'ProductController@getProducts'); getProducts public function getProducts(){ return view('products.products'); } products View <head> @extends('layouts

charlieBrown's avatar
charlieBrown's avatar juancibarr...7yrs agoLaravel
1
2
Last reply by juancibarrac93 7yrs ago
charlieBrown's avatar

embebed form in stripe not popping up

I'm trying to set up Stripe into my project but the embebed form never pops out. view @foreach ($products as $product) <form action="{{ route('pay', $product->id) }}" method="POST"> {{ csrf_field() }} <script src="https://checkout.stripe.com/checkout.js" class="str

charlieBrown's avatar
charlieBrown's avatar brunofranc...9yrs agoLaravel
2
1
Last reply by brunofrancisco 9yrs ago
afraz's avatar

Stripe custom image on top

Hi, I want to show a custom image on stripe form. If i link an image that is located at "root_folder/images/logo.png" then it works. But if I want to show image that is located at storage directory then error occurs. I tried: image: "images/logo.png", it works. but I am not saving logos here. I am saving logos at storage directory. image: "public/images

afraz's avatar
afraz's avatar afraz9yrs agoVue
0
1
afraz's avatar

Stripe modal with locallization

Hi, I want to translate stripe form in the selected language that stripe supports. Does anyone know how to add translations of stripe form and show on it ??

afraz's avatar
afraz's avatar afraz9yrs agoVue
0
1

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.