#stripe

/

      • beorn__ has quit
      • gator
        need to know if there's anyway to combine charges... like let's say a customer checks out and we charge them $x and then 5 mins later they make another purchase, is there any way to combine that to look like one charge?
      • PrplHaz4 joined the channel
      • or is our best bet to run a pre-auth for the original and wait for the 2nd action
      • koopajah
        gator: yes and no. It's possible if you just don't charge the customer immediately and wait to see if he plans to buy something else maybe. Otherwise no as soon as you create a charge it's done you can't change it (other than refunding it)
      • yeah that would work, but there's no guarantee that the second charge (for 2 items) will work
      • gator
        right, unless you pre-auth with that amount in mind
      • bruce__
        So if a charge.failed webhook is triggered. How can I identify the customer from that data? Here is an example of the data I get http://pastie.org/10122272
      • gator
        and if that pre-auth fails you then attempt to charge the original amount and then skip any possible post-checkout upsell
      • koopajah
        bruce__: is that a one-time charge or a charge associated with a customer?
      • gator: sure
      • gator
        one-time
      • bruce__
        More readable version @koopajah http://cl.ly/image/2D1g2i2l3i1u/o
      • gator
        oh, nm
      • ha
      • mikeybisbo joined the channel
      • bruce__
        It's associated with a customer @koopajah
      • koopajah
        then not sure
      • pretty sure I saw your email before and someone got back to you though
      • bruce__
        Oh just seeing Thomas did
      • Just responded too
      • praboud has quit
      • Whats weird is that in my Events logs in Stripe, you can clearly see a customer id in the JSON
      • joelataylor joined the channel
      • But when it's posted to me, that field is null
      • koopajah
        so you need to wait for thomas to get back to you. Quickly looking at the charge though it's not associated with a customer since it's the customer creation that failed
      • looking at the event in your dashboard I don't see any customer id
      • I think you're looking at the wrong event
      • since the customer creation failed
      • kaspergrubbe
        bruce__: wow, api-version: 2011-11-17, didn't know stripe supported versions that far back
      • bruce__
        Ah thanks guys, might be some fraudster
      • I'm OG!
      • kaspergrubbe
        You are :P
      • joelataylor has quit
      • bruce__
        Cool, later guys/gals
      • r00k has left the channel
      • HairAndBeardGuy_ joined the channel
      • uri_
        in the stripe dashboard, under Connected accounts, we have a list of verified and non-verified accounts, how can you tell if an account is verified through the API?
      • koopajah
        uri_: so you would look at the `fields_needed` hash on the account and make sure you provide all that's needed
      • subs joined the channel
      • uri_
        so we have verified accounts that still have fields needed
      • subs
        is the default_source always the card that will be used for a customer's subscription?
      • markin
        uri_: legal entities each have a verification
      • koopajah
        uri_: yeah so I think you can look at `transfers_enabled` and `charges_enabled`
      • markin
        subs: yes
      • bruce__ has quit
      • uri_
        koopajah, markin ill try both those
      • HairAndBeardGuy has quit
      • joelataylor joined the channel
      • subs
        markin: just to be clear, if I change a customer's default_source, then their next invoice will be charged against the new default_source and not the original card that the sub was created with?
      • markin
        subs: correct
      • subs
        thank you
      • subs has quit
      • gladely joined the channel
      • derferma_ joined the channel
      • coxw joined the channel
      • coxw
        how can you tell if a managed account is 'verified'? it shows in the admin panel, but legal_entity[verification][status] says 'unverified'
      • there is nothing in the response payload to see if someone is verified
      • is there something required from a webhook that i am not seeing? There should be webhook logs in stripe admin panel - right?
      • koopajah
        didn't you just ask the same question? lol
      • ha no it was uri_
      • [11:24:40] <@koopajah>uri_: so you would look at the `fields_needed` hash on the account and make sure you provide all that's needed
      • [11:26:17] <@koopajah>uri_: yeah so I think you can look at `transfers_enabled` and `charges_enabled`
      • coxw
        koopajah: thats not correct
      • koopajah
        what do you mean "that's not correct" ?
      • rubyonrailed joined the channel
      • coxw
        i asked that to support@stripe.com -> we always get transfers_enabled, charges_enabled = true even on unverified accoutns
      • and fields_needed is empty
      • koopajah
        then you'd need to ask support@stripe.com and wait for an answer
      • coxw
        koopajah: as a heads up, there is an undocumented feature to create a verified managed account - you need to set the 'personal_id' to 000000000 or upload this file: https://stripe.com/img/documentation/guides/tes...
      • koopajah
        I'm aware of that but thanks for the heads up
      • ta_ joined the channel
      • coxw
        i asked, they just didnt answer completely, and response times are 1.5 days
      • i figured i'd try her
      • uri_
        is that way of verifying only for testing?
      • koopajah
        yep, unfortunately, managed accounts are still pretty new and in beta, a lot of moving pieces sorry about the delays
      • kellysutton joined the channel
      • ta has quit
      • coxw
        uri_: correct - you will never get a verified account without that
      • uri_: in test mode
      • uri_
        gotcha thanks for the tip!
      • ta_ has quit
      • coxw
        uri_: are you doing managed accounts?
      • uri_
        yeah
      • derferman joined the channel
      • brian joined the channel
      • brian is now known as Guest94630
      • Guest94630
        hi, i'm wondering if a predispute can ever become an actual dispute
      • alex__ joined the channel
      • koopajah
        not sure, I would say yes but I'm not really familiar with disputes and account specific questions unfortunately
      • alex__
        Hi, guys. Help us wiith method https://connect.stripe.com/oauth/token. On first call it return always "Authorization code expired". What can cause it?
      • koopajah
        alex__: multiple things, you already using it, your code hardcoding an old authorization code, you using it more than 5 minutes after creation. Someone asked the exact same question earlier today
      • timrosenblatt joined the channel
      • alex__
        we definitely use new code, but get this error on first try.
      • have any idea?
      • koopajah
        nope unfortunately. If you're related to that other user who asked I told him to stop using Postman or what he was trying and instead write some code to make the POST request himself and have control over it
      • edrocks joined the channel
      • kpsullivan joined the channel
      • rubyonrailed has quit
      • Guest94630 has quit
      • rubyonrailed joined the channel
      • Peder_ joined the channel
      • irctc995 has quit
      • JustinAffinity joined the channel
      • dqsf joined the channel
      • dqsf has quit
      • irctc134 joined the channel
      • irctc134
        hello pls put me through about stripe business.
      • nerdfiles has quit
      • Peder_ has quit
      • rubyonrailed has quit
      • Guest73730 has quit
      • hello pls put me through about stripe business.
      • koopajah
        irctc134: what do you mean "put you through" ?
      • joelataylor has quit
      • rubyonrailed joined the channel
      • Guest16844 joined the channel
      • nerdfiles joined the channel
      • Guest16844 is now known as sub
      • sub is now known as Guest2884
      • Guest2884
        hey all quick question
      • I am trying t ofigure out WHERE to put the charge code on my server. what folder/file?
      • merci! :)
      • koopajah
        Guest2884: that depends completely on your server, your integration, the language and framework you use, etc.
      • Guest2884
        koopajah: basic shared hosting server. using wordpress.
      • koopajah
        Guest2884: but do you write the whole code yourself or do you use a third-party plugin? I mean with wordpress it's not just writing the Create Charge call, you have to integrate with wordpress, use their database, etc.
      • irctc134 has quit
      • Guest2884
        i placed the form code that is in the stripe documentation https://stripe.com/docs/tutorials/checkout . i got the token in my stripe dahsboard.
      • ohhoe joined the channel
      • koopajah
        yeah so the token is just the first step then you need to use that token to create a charge https://stripe.com/docs/tutorials/charges but I have no idea how to do that in Wordpress, most people just use a third-party plugin
      • ohhoe has left the channel
      • Guest2884 has quit
      • mtthw_ joined the channel
      • vlad__ joined the channel
      • mtthw has quit
      • vlad__
        I've added a couple of automated tests that run stripe. What's an ok amount of requests per hour to send to stripe test? Is there a rate limit?
      • tildedash has quit
      • koopajah
        ~30 requests per second in Live mode before we start sending rate limiting errors
      • vlad__
        Any limit on test?
      • test mode*
      • koopajah
        lol
      • my brain typed the wrong thing sorry
      • it's 30 requests per second in TEST mode
      • vlad__
        got it. thanks.
      • tildedash joined the channel
      • bkrausz joined the channel
      • jon___ joined the channel
      • tildedash has quit
      • layke has quit