#stripe

/

      • Gabe_
        If we go the route of doing $1 invoices and multiplying the quantity, is all the proration handled for us? Also, can we modify the customer invoices so they dont say something like Subscription $1 x 65 = $65
      • joelataylor has quit
      • william234 joined the channel
      • dqsf
        Gabe_: if you use $1 or $0.1 plan x quantity, yes proration should be handled on changes by stripe. Sadly that is the description though you could send your own custom receipts to users vs stripe's with the info you want
      • k2mcintosh has quit
      • wizkhalisa joined the channel
      • wizkhalisa has quit
      • william234
        I setting up a Managed Connect account. I want to offer my customers Stripe at a fixed flat % plus flat fee - I see I can do this using Application Fee. Will Stripe simply subtract the interchange and Stripe fee and pay me the difference?
      • Or do I need to calculate the split somehow for Stripe + my company?
      • dqsf
        william234: with managed accounts, charging through your platform, your platform is responsible for all stripe fees, so you'll want to take that into consideration when calculating the application_fee to charge your users
      • william234
        so I can definitely calculate the stripe fees
      • So if I set a flat fee of 2.7% - I would make 2.7% - Stripe Fees - Interchange
      • frode_ has quit
      • so I would need to send the Application Fee and Stripe Fees? ie the Connected Account Transaction Fee?
      • Do I also need to send the Connect Fee (which has a cap according to my contract). ie would I need to track the charges to calculate when this Connect Fee cap has been met?
      • huntwelc_ has quit
      • dqsf
        let's make an easy example. so if your charge were $100, and you charged an app fee of 5% fee, your take would be $5 - 3.20 (stripe fees on $100 for standard US fee) $1.80.
      • and then there's the 0.5% fee on funds paid out of managed accounts, so another 0.5% of that $95, $0.48, so total net after all fees with that 5% app fee would be $1.32. If you have a contract with different terms and/or maximums there yes you would need to track that
      • support can help you if you do, https://support.stripe.com/email
      • william234
        in my case my specific terms include Interchange
      • so it's interchange + stripe %
      • so am I expected to calculate interchange?
      • dqsf
        william234: ah, okay that sounds like it will complicate things, talk to support, they can help you with the calculations here
      • william234
        ok thanks
      • lokifacio joined the channel
      • lokifacio
        Hi
      • dqsf
        hi lokifacio
      • what's up
      • lokifacio
        I'm getting this error when calling stripe.Customer.create
      • module 'requests' has no attribute 'exceptions'
      • any clues?
      • some time ago I was using the same code and it used to work
      • dqsf
        lokifacio: it sounds like the code may be throwing an exception
      • if you look in your logs do you see any failed requests, dashboard.stripe.com/logs
      • lokifacio
        I only see 200 Ok entries
      • dqsf
        hmm, so its not reaching stripe before erring out
      • lokifacio
        stripe==1.42.0
      • requests==2.12.1
      • dqsf
        lokifacio: do you have the code snippet you can share in a gist or pastebin (you can omit your key)
      • lokifacio
        I also tried updating in case some deps may had some issues
      • customer = stripe.Customer.create(
      • dqsf
        https://stripe.com/docs/charges is basic code you may want to compare with
      • lokifacio
        email = customerEmail,
      • source = token
      • )
      • thats mostly what I'm doing
      • dqsf
        lokifacio: yeah, that's pretty basic, try wrapping in a try: except: block, like https://stripe.com/docs/api/python#errors ?
      • Gsham has quit
      • regedit joined the channel
      • lokifacio
        thats when I get that error
      • pastuxso joined the channel
      • if use a just except Exception as e: at least it catches the exception
      • chreekat has quit
      • chreekat joined the channel
      • i'll try with other exceptions
      • but it seems another thing
      • c21 has quit
      • c21 joined the channel
      • slowbuild joined the channel
      • it ignores al stripe exceptions
      • so it seems to be related to another thing
      • could it be another library shadowing some class?
      • dqsf
        hmm, possibly
      • c21 has quit
      • frankdrey joined the channel
      • lokifacio
        well, I'll try some git diff another day
      • now it's too late for that stuff
      • XD
      • thanks anyway...
      • lokifacio has quit
      • dqsf
        hehe, best wishes, if you continue to have trouble with it let us know, i haven't been able to repro so far
      • Peder_ has quit
      • gingerale has quit
      • MrBech has quit
      • huntwelc_ joined the channel
      • jackie_ has quit
      • zwerg has quit
      • huntwel__ joined the channel
      • zamro has quit
      • jchambers joined the channel
      • zamro joined the channel
      • joliwsson has quit
      • huntwelc_ has quit
      • huntwel__ has quit
      • zamro has quit
      • Redm4x has quit
      • jchambers
        php question - Sent along with token - $response = \Stripe\Customer::create([K=>V]); - returned $response ==> Stripe\Customer::__set_state([All_INFO]) - $response->id is null.
      • What is the correct $response-> to get the customer ID
      • dqsf
        $response->id
      • c21 joined the channel
      • $response = \Stripe\Customer::create(array("source"=>"tok_xxxyyyyzzzz")); echo $response->id;
      • c21_ joined the channel
      • c21 has quit
      • jchambers
        Thank you, I will try again.
      • Gabe_ has quit
      • titus joined the channel
      • titus
        quick question : do I use stripe connect from the client or server?
      • dqsf
        titus:all the calls to create payments and such are done on the server side
      • c21_ has quit
      • Any card details can be securely collected client side via stripe.js, checkout, our mobile sdks
      • titus
        thanks, what about creating accounts? using stripe connect managed
      • dqsf
        yep, account creation is server side as well
      • c21 joined the channel
      • you could create your own form to collect account detail, etc
      • submit to your backend and then create the account there
      • titus
        cool so everything server side. Thanks for info!!
      • stripe553 joined the channel
      • weiks has quit
      • tratoboy joined the channel
      • titus has quit
      • tratoboy
        hey guys, i have a question, when im visiting the detail of one of our customers "https://dashboard.stripe.com/customers/cus_9ToS54a3YzgGq7/upcoming_invoice" i see an amount for the next invoice which is the double of his/her subscription minus a discount, the discount is correct but i wonder why the subscription is counted double
      • can i just delete one of the Invoice line items?
      • c21 has quit
      • stripe553
        Hey there! I am trying to set up Stripe for my Shopify page. But I am stuck in testing, what kind of name, CVV and expiry date should I use?
      • tratoboy
      • here are some test card numbers
      • dqsf
        tratoboy: it sounds like there could be proration in effect, if you share that link with support they can look it up and provide more detail. but yes, you can certainly delete any invoice items you'd like to avoid charging for, https://support.stripe.com/email
      • jchambers
        @dqsf - thanks, got it working
      • jchambers has quit
      • dqsf
        jchambers: excellent
      • fmitchell0 joined the channel
      • fmitchell0
        hello. i'm having trouble getting a recovery code SMS'd to me
      • dqsf
        fmitchell0: you'll want to chat with support about that, https://support.stripe.com/email
      • fmitchell0
        i've tried a few times and it states it will send a code for two-factor, but no code is sent
      • ok
      • eacameron joined the channel
      • tratoboy has quit
      • stripe553
        @tratoboy I have the card numbers, but what about the CVV , expiry date and name?
      • fmitchell0 has quit
      • dqsf
        stripe553: any valid value there works with stripe's test mode
      • stripe553
        It declines the card all the time though
      • dqsf
        stripe553: if a card is being declined it sounds like you are not using test keys, email support and they may be able to look at your account
      • slowbuild has quit
      • bostonmacosx joined the channel
      • bostonmacosx
        evenint
      • evening
      • stripe553 has quit
      • I've set up customers in my application. I want to check a customer to see if they have a CC in their account before subscribing them
      • qar joined the channel
      • dqsf
        bostonmacosx: you can check if the sources list is empty
      • bostonmacosx
        ok cool
      • qar has quit
      • einnjo joined the channel
      • stiky joined the channel
      • joshontheweb joined the channel
      • Tim__ joined the channel
      • Tim_ has quit
      • stiky has quit
      • Tim__ has quit
      • stripe552 joined the channel