#stripe

/

      • balderdash
        markin, thanks. How does crowdfunding work in that case, without the ability to charge a %?
      • markin
        yea, I don't work for Stripe so I don't know who would be the best person to ping about that
      • balderdash: what do you mean?
      • arp2000
        markin: Ah, I assumed you were an employee, thanks anyway.
      • Is there anyone here who works for Stripe?
      • balderdash
        Project A receives $1000 donation. The platform charges 5%. The remaining 95% goes to the project.
      • markin
        balderdash: your api creates the charge and sets an amount, by setting the amount you can easily just calculate what the fee should be
      • balderdash
        okay, so we use our own code to calculate how much the % fee is in CENTS, and then use that figure in the application fee parameter?
      • ryanclark has quit
      • ryanclark_ is now known as ryanclark
      • markin
        yea
      • g3funk has quit
      • balderdash
        For Stripe Connect, can we control/change when our fees clear to us?
      • (e.g. daily, weekly, monthly, etc)?
      • markin
        you can enable manual bank account transfers and you can manually deposit the funds into your bank account
      • g3funk joined the channel
      • balderdash
        okay, is that the only way, or can this be automated?
      • HairAndBeardGuy joined the channel
      • markin
        you can do it via api calls but you'd have to write the automation code
      • like a cron job or something
      • balderdash
        is that a difficult implementation?
      • HairAndBeardGuy_ has quit
      • markin
        balderdash: not really, just set up some code that runs every day/week/month and then create a new transfer. Or Stripe will just transfer your available balance on a nightly basis
      • balderdash
        excellent
      • ericjung_
        hi, i'm trying to get a list of disputes but am having trouble with some very simple code.
      • in this short python script (30 lines), i've iterated over 128,000 transactions and not a single one appears as disputed. But my code must be wrong because I have plenty of Stripe emails about disputed transactions.
      • (python is not my native language so please forgive the poor code)
      • grunner joined the channel
      • markin
        ericjung_: it looks fine, did the stripe emails include a transaction id?
      • *charge id
      • mahmoudimus has quit
      • mahmoudimus joined the channel
      • grunner
        Is there an email at Stripe where I can submit my SAQ and AOC for PCI compliance?
      • ericjung_
        markin: checking
      • markin: looking at one random one (i have hundreds), yes.
      • markin
        grunner: you just keep them on file for yourself
      • balderdash has quit
      • ericjung_: and if you retrieve one of those charges in the python API can you view the dispute?
      • ericjung_
        markin: good question. let me try.
      • Reh_ joined the channel
      • Reh has quit
      • gaz_ joined the channel
      • grunner
        markin: I have a client that would like to see my company on the Visa Service Providers list so I want to submit the documents somewhere so I can get on that list. Also, the final step in PCI compliance says to submit this documentation to my "acquirer" which could be read as Wells Fargo or Stripe. But Wells Fargo referred me to you
      • markin
        grunner: so you should email support@stripe.com
      • grunner
        markin: ok thanks
      • grunner has quit
      • gaz_
        sending transfers advice... PHP/Yii2 or AngularJs tools you know about?
      • markin
        gaz_: whats your question
      • ericjung_
        markin: yes, that works
      • gaz_
        was wondering if anyone is familiar with stripe.com tools particularly relating to PHP/Yii2 or AngularJs.
      • Reh_ has quit
      • irctc996 has quit
      • markin
        gaz_: a bit, most of your Stripe API calls should be happening from your PHP code
      • mmatey joined the channel
      • gaz_
        I see. Another thing... are transfers US only?
      • markin
        gaz_: yes
      • gaz_
        ahh... wasted an evening. thanks anyway.
      • mmatey
        hello - quick question, I just noticed during testing that fraud_details suddenly showed up during a charge, is this a new feature? I can't find it in the documentation
      • stripe321 joined the channel
      • stripe321
        I have a question regarding checkout.js
      • should adding the data-zip-code attr add a zip code to the payment form?
      • Reh joined the channel
      • markin
        mmatey: they're adding a bunch new features. You can mark a charge as fraudalent in the dashboard to refund the charge and report it to Stripe
      • mmatey
        ok, thank you
      • markin
        stripe321: once you type in the credit card number and expiration it should add a zip code entry iirc
      • gaz_ has quit
      • mmatey
        markin: are payments limited to the US (incoming that is) and if not, is there a way we can force that?
      • stripe321
        Oh, let me give that a try
      • markin
        mmatey: nope, but you can check the country of a card or you can limit based on IP address (those checks would be in your code)
      • mmatey
        ok, so I can throw an error to the user after the token is generated.. thanks
      • markin
        mmatey: yw
      • rfunduk joined the channel
      • mmatey has quit
      • g3funk has quit
      • g3funk joined the channel
      • Jurjen has left the channel
      • stripe321
        Hmm, I just tried an no zip field appeared. I tried it with a remembered user, Could that be the cause?
      • markin
        remember user would already have the card details remembered
      • stripe321
        The remember user was setup prior to me adding the data-zip-code="true" attr
      • So how is that handled
      • ericjung_
        markin: here's an even simpler example: http://pastebin.mozilla.org/6991296
      • markin
        yea, I'm gonna guess the remember me out ranked the zip
      • ericjung_
        markin: i'm just trying to access the "data" array of the returned object and cannot seem to do it. i've tried array indices, too
      • markin
        ericjung_: can you print charges
      • stripe321
        Would that be considered a bug? If i have the decline charge for invalid zip feature turned on. Any of my previous users who chose the remember option now would fail since I turned this on
      • ericjung_
      • markin
        stripe321: Declined for invalid zip would mean they entered in an incorrect zip not that they failed to enter one in
      • ericjung_
        the datatype of that seems to be string, so i've also tried:
      • json.loads(charge.data)
      • and various similar things
      • markin
        ericjung_: and if you did charges['data']?
      • ericjung_
        yeah i get an error
      • here:
      • >>> for charge in charges:
      • ... print charge['data']
      • ...
      • Traceback (most recent call last):
      • File "<stdin>", line 2, in <module>
      • TypeError: string indices must be integers
      • so charge is indeed a string
      • and charges is:
      • >>> type (charges)
      • <class 'stripe.resource.ListObject'>
      • markin
        charges is an object, so you should be able to do charges[data]
      • charges['data']['0'] should also be a object
      • stripe321
        I didn't follow your last reply. Now that I have the valid zip setting on, shouldn't the zip be required, and for any users who clicked remember me prior to me changing this setting, should be reasked for their zip since one was never set.
      • ericjung_
        yep that worksd
      • markin
        stripe321: frankly remember me isn't used by that many people. They should be reasked for their zip code but I don't think they will be because of how its structured. This won't cause charges to get declined though
      • ericjung_
        markin: so how does one iterate over a stripe.resource.ListObject? That's where i'm having trouble.
      • markin
        ericjung_: you would iterate through charges['data
      • ']
      • ericjung_
        oh!
      • really?
      • markin
        yea
      • ericjung_
        markin: holy crap, thank you so much
      • i am new to python
      • this just wasn't clicking for me
      • markin
        you're welcome
      • ryanclark has quit
      • arp2000 has left the channel
      • HairAndBeardGuy_ joined the channel
      • stripe321
        I'd like it to decline charges though without a matching zip supplied. What are my optoins here?
      • markin
        stripe321: you can check if the token doesn't have a zip code provide and then just not charge it. Stripe will decline if the zip code doesn't match
      • ryan_mckenize has quit
      • relisys has quit
      • stripe321
        But on the users end, they were never asked for a zip code. So they will get declined and not understand why since it worked before
      • markin
        stripe321: Stripe won't autodecline it if they don't have a zip code
      • stripe321
        I'd like it to
      • I want to require a zip now and am just trying to find the best option to keep things smooth for my users
      • HairAndBeardGuy has quit
      • markin
        you could use Stripe.js or just tell the your customers if they use remember me (which not many people in my experience actually use), they can manually enter in their cc info and they'll be prompted for the card info. or you can disable remember me
      • camroncade has quit
      • jxpx777 has quit
      • stripe321
        I also found this attr online but don't see it document data-billingAddress="true"
      • markin
        that attribute has been deprecated but I document it on my blog mattarkin.com/how-to-get-billing-and-shipping-a...
      • erisco has quit
      • stripe321
        Does this attr turn on addr verification? Or is it soley for capturing the users addr info and no verification
      • oh
      • ok
      • markin
        the address will get verifed and the results set as part of the card object
      • Reh has quit
      • g3funk has quit
      • braidn_ joined the channel
      • wamal joined the channel
      • wamal has quit
      • jameshk has quit
      • camroncade joined the channel
      • boucher has quit
      • boucher joined the channel