#stripe

/

      • Peder_ has quit
      • tol22 has quit
      • nomad joined the channel
      • vmayoral joined the channel
      • amunds_ joined the channel
      • vmayoral has quit
      • nomad has quit
      • massd
        hi guys - as a platform with managed accounts, how do i query to get a list of all bank transfers made for a given destination? or for my platform account for my application fees?
      • markin
        massd: you could query transfers for each managed account (the list transfers api with the stripe_account header), and there is a list application fees api
      • jgoldberg joined the channel
      • kreynolds has quit
      • massd
        markin: ah, good idea on the application fees. i'm still working thru my thoughts from yesterday. i'm starting with a paid bank transfer, tr_123. I'm still not finding a way to get all of the transactions that belong to that transfer. :\
      • markin
        stripe.com/docs/api#list_balance_history lets you specify the transfer
      • massd
        interstingly there is a sourced_transfer key on balance transactions that has a url like /v1/transfers?source_transaction=tr_1234 but that url doesn't work.
      • markin
        /v1/balance/history?transfer=tr_1234
      • iirc
      • massd
        ah ha, I think that's the one.
      • I was trying ?source=tr_1234
      • kreynolds joined the channel
      • jgoldberg has quit
      • markin: thanks, that helped a lot, I was just overlooking it. Do you know what a sourced transfer is?
      • ronoc has quit
      • markin
        source_transaction is if you manually make a transfer and set the source_transaction its part of special case transfers
      • massd
        ah, the ones that can only be like 10% of your volume?
      • markin
        yeah
      • kjac85 joined the channel
      • kjac85
        hey, I'd like to be able to add a new product to a customers order on woocommerce and have stripe charge them for that extra amount. As is, I have to invoice them or they have to reorder, unless I have missed a way to recharge their card within woocomerce. Any ideas how I could achieve this?
      • timrosenblatt has quit
      • zachsnow has quit
      • nomad joined the channel
      • bkrausz has quit
      • markin
        I think with how woocomerce works, they have to place a new order
      • kjac85
        I've talked with a programmer who thinks he can custom code something to achieve this, just wondering if something like it already exists
      • bnmorgan joined the channel
      • bnmorgan
        G'morning
      • builing a weebly site, saw that stripe processing is built in, have a few questions
      • mauricio109-on-o has quit
      • asheinfeld has quit
      • markin
        kjac85: you'd have to find / modify your woocommerce plugin so that it uses Stripe customers, there may be some that allow you to store the customer's credit card
      • hi bnmorgan just ask
      • nomad has quit
      • bnmorgan
        well, was looking through the terms and all that pile of fine print, and while i didn't see it spelled out, does your company have any problem processing for the firearms industry?
      • asheinfeld joined the channel
      • praboud
        bnmorgan: selling firearms is a bit of a sticky business because states have different regulations
      • I think stripe supports some subset of gun-related businesses
      • there are some parts you can't sell
      • bnmorgan
        aye, tell me about it.....between the BATFE, NFA branch, FBI, and DOJ, i am drowning in regulations
      • markin
        Yeah, I'd guess that it'd fall under the "Regulated products and services" provision of https://stripe.com/us/prohibited-businesses but like praboud is saying it depends on exactly what you're selling
      • praboud
        iirc, you can't sell a full gun, lower receiver, or ammunition
      • bnmorgan
        well, that leaves me out, we manufacture rifles and NFA items.
      • :/
      • praboud
        you probably want to write to support via email to get a proper answer
      • this is a bit outside of my area of expertise
      • I've picked up a bit of this stuff by osmosis from risk & support, but I'm not clear on the finer points
      • irctc915 joined the channel
      • ashd has quit
      • ashd joined the channel
      • mauricio109-on-o joined the channel
      • massd
        for managed accounts, are payments (py_xxxx) the corresponding end of a platform charge (ch_xxxx)?
      • praboud
        massd: yeah, platform charges result in a payment on the connected side
      • amunds_ has quit
      • massd
        praboud: tnx. if I get a list of transfers for a connected account, I have a bunch of py_*. I'm after the metadata that is attached to the corresponding ch_*. Is there an alternative way to get all of the ch_* that are part of a transfer to a connected's bank account?
      • asheinfeld joined the channel
      • basically, I want to generate a report that shows "here are the last 10 deposits we made to your bank account" and let the user click on one and see the N charges that are part of that bank account, but I need to tie those individual charges back to orders in our system so they can drill in to get detail. Not sure how to do the last part with the data I'm seeing.
      • so I want to take an individual py_ in the connected account and mash it up with what we have (which is a ch_) so I can tie the customer detail to it.
      • markin
        In your account the balance transaction for a charge will show the py id
      • massd
        i tried listing transfers with recipient = the connected account I'm trying to filter to, but that didn't work... not sure what recipient is supposed to accept.
      • i think recipient is the bank account variant of a customer?
      • markin
        You have to do list all transfers and set the stripe account header
      • massd
        so one call to get the list of transfers from the connected account, a second call to get the transactions in a transfer, and then one call per transaction to get the charge details from the platform for a given payment in the connected account?
      • markin
        You can get the payment for a charge not vice versa
      • So you'll want to save that when you create the charge
      • irctc915
        where I can find payment kit swift example?
      • nemothekid has quit
      • mauricio109-on-o has quit
      • Hari_ joined the channel
      • Hari_ has quit
      • vmayoral joined the channel
      • thoen joined the channel
      • vmayoral has quit
      • kreynolds has quit
      • thoen
        I am looking at moving from paypal to stripe and i have a question about the Stripe::Charge and the checkout.js modal
      • I have put up a page and tested it a bit with both valid and invalid test credit cards
      • kjac85 has quit
      • mauricio109-on-o joined the channel
      • Is it safe to assume that no post will be made to the encapsulating form's action unless the entered card is valid and successfully authed?
      • digitalmediaguy joined the channel
      • praboud
        thoen: safe from a security perspective?
      • no
      • but you can expect that in the course of normal use, you'd only get a post if the card is valid
      • thoen
        Thanks for the quick response praboud
      • praboud
        np!
      • nomad joined the channel
      • thoen
        When you say 'valid', does that mean that when I issue a Stripe::Charge.create with the token that was included in the post to the form that the charge could fail (insufficient funds, denied, etc)
      • praboud
        it could, yes
      • for example, if you make a charge for more funds than are available, it will fail
      • thoen
        So I need to check a response code on what is returned from Stripe::Charge.create. I have not been able to track down docs on that. Any suggestion on where to look?
      • praboud
        but checkout will help avoid silly failures (eg: a typo in the card number)
      • if the charge fails, it returns an error response
      • in the client libraries, this gets converted to an exception, and thrown
      • what bindings are you using?
      • thoen
        Ah, so that exception is not just for catching network errors
      • I am not sure what you mean by 'bindings'
      • praboud
        client libraries == bindings
      • ie: what language are you using?
      • thoen
        ruby
      • s2013 joined the channel
      • and the checkout.js library
      • praboud
        yeah, then you'd just get an exception
      • thoen
        When I was playing around with test cards, and entered one that is supposed to return a 'declined' status, it was captured by the modal, and never posted the error
      • praboud
        yeah, checkout wouldn't catch that
      • jgoldberg joined the channel
      • you wouldn't get that error until actually making the charge
      • that's intended behaviour
      • thoen
        But I was using checkout when I entered that test card: 4000000000000002
      • praboud
        yep
      • that's intended behaviour
      • hrstripe joined the channel
      • thoen
        so that doesn't reflect how checkout would respond to an actual declined card?
      • praboud
        no, it does
      • s2013 has quit
      • checkout will catch the declines where the card is totally borked
      • thoen
        where instead of it being captured in the modal, it would be captured by the rescue after attempting the Charge.create
      • praboud
        eg: expired, not a real card, frozen, etc
      • s2013 joined the channel
      • but you should expect to get declines after the initial validation done by checkout
      • s2013 has quit
      • hrstripe has quit
      • thoen
        Do you know if there are any test cards that I can use to test that functionality, so I can ensure that the page redisplays properly with the correct error messaging?
      • jgoldberg has quit
      • praboud
        test which functionality?
      • checkout rejecting the card?
      • thoen
        I really appreciate the advice. This helps clear up a lot of my confusion
      • I am trying to test charge returning an error which needs to be captured with Stripe::CardError
      • praboud
        ooh, I misread your earlier message
      • it *was* captured by the modal
      • zachsnow joined the channel
      • thoen
        Yes, I got a 'Declined' message beside the card number in the modal
      • digitalmediaguy has quit
      • praboud
        4000 0000 0000 0019 should do what you want
      • thoen
        I figured Stripe was doing a simple auth on the card and not posting to the form action unless it came back as successful, but don't see that anywhere in the docs
      • praboud
        that's exactly what's going on under the hood
      • exs has quit
      • harttho has quit
      • thoen
        So we know it is a valid card, but we may still get declined for insufficient funds or for fraudulent reasons. So most of the time, if it makes it to the form, we should get a successful charge. With CVV and address validation has already passed.
      • s2013 joined the channel
      • This makes sense, so the errors are raised on edge cases
      • praboud
        pretty much
      • evotuned_ has quit