#stripe

/

      • mattwc
        If you're asking for their card info each time I would question using stripe customers in the first place
      • nickdnk has quit
      • unix_fan_ has quit
      • unix_fan joined the channel
      • mikeholf has quit
      • vasp
        is it acceptable practice to displace a charge ID ch_* to the end user?
      • *display
      • mattwc
        vasp: its fine but it's not the most user friendly
      • vasp
        yeah, thats quite true. I figured putting it somewhere in the technical details area of the invoice (just to help resolve any issues, since it serves as a reference)
      • unix_fan has quit
      • houston joined the channel
      • houston
        I'm working with Stripe Checkout, flask, and AWS Lambda. I'm pretty confused on what is happening. When I run a test payment, Lambda throws a 401 error saying Invalid API Key provided, but Stripe's logs show 200 with the provided information. What's going on?
      • kies joined the channel
      • AppError joined the channel
      • sbailliez joined the channel
      • AppError has quit
      • junkpiano joined the channel
      • jasmer has quit
      • jasmer joined the channel
      • junkpiano has quit
      • junkpiano joined the channel
      • unix_fan joined the channel
      • junkpiano has quit
      • jasmer has quit
      • jcfost has quit
      • mattwc
        houston: does the stripe log only show the token request or does it show the charge request too?
      • houston
        mattwc: only the token request
      • mattwc
        So that would confirm that your lambda request is indeed failing
      • AppError joined the channel
      • junkpiano joined the channel
      • junkpiano has quit
      • _ritchie__ joined the channel
      • _ritchie_ has quit
      • _ritchie__ is now known as _ritchie_
      • houston
        Alright, that limits my figuring out the error to the Lambda environment variables. That helps.
      • junkpiano joined the channel
      • junkpiano has quit
      • jakedt has quit
      • zach443 has quit
      • zach443 joined the channel
      • jakedt joined the channel
      • raymorgan joined the channel
      • carl_ joined the channel
      • carl_
        Hello, is stripe.js available on npm?
      • orbyt_ has quit
      • Also would it be possible to use stripe.js/v2 instead of v3? We have our own custom elements, and we need to validate bank account information. Which AFAIK stripe.js/v3 doesn't offer.
      • stripe.js/v3 feels and looks like a total pain for us. On top of that it doesn't seem to be offered on npm. The reason for that, I have no clue. But it is a huge pain for me at my company. Mainly because we lazy load all our dependencies until they are used and stripe.js script loading makes it difficult to do.
      • orbyt_ joined the channel
      • Can someone at stripe please tell me why stripe.js isn't available on npm?
      • On top of this why are some of the API's for validation unavailable on stripe/v3?
      • This makes it doubly more painful and unlikely we will upgrade, because to use the missing API's we need to load BOTH stripe versions....
      • ugh.
      • If you need to perform bank account validation, use Stripe.js v2 for both collection and validation.
      • but if we need to collect PII data: https://stripe.com/docs/stripe-js/v2#collecting...
      • It's apparently deprecated.
      • This is incredibly frustrating and uninuitive.
      • unintuitive*
      • We have a lot of infrastructure related to our elements that depend on the validation methods for bank/cards/etc. and it's so frustrating that these aren't available first class and instead are only available through elements. Talk about throwing away thousands and thousands of hours we've spent engineering them to our liking and usefulness with hooks for analytics and much more.
      • Please, provide these methods back to stripe.js and please put it on npm. It will make our application bundling and build pipeline much simpler. While preserving our infrastructure.
      • nickdnk joined the channel
      • houston has quit
      • houston joined the channel
      • houston has quit
      • houston joined the channel
      • eshlox has quit
      • stripe747 joined the channel
      • stripe747
        Experimenting with custom account for Japan
      • Using Kana input but it requires same thing for Kanji?
      • eric_lagergren joined the channel
      • eric_lagergren has quit
      • cannap has quit
      • unix_fan has quit
      • houston has quit
      • unix_fan joined the channel
      • wolfman87 joined the channel
      • wolfman87
        Anyone on?
      • wolfman87 has quit
      • vasp
        when setting payout schedules, how does it work exactly with the "manual" method. Do I set the schedule once (and that will affect all payouts for all charges) OR... do I set a payout per charge and that payout schedule will only affect that respective charge?
      • vbwyrde
        I'm guessing the Big Wigs are sleeping by now. I know I will be in about five minutes. But the good news is I _think_ I'm ready to give this another test tomorrow morning and this time I think it should work.
      • vasp
        nice
      • unix_fan has quit
      • vbwyrde
        :)
      • ok heading off to dreamlandia
      • ciao ciao
      • orbyt_ joined the channel
      • I wonder ... does stripe list anywhere the data field definitions of the various keys?
      • because I'm seeing cases where the examples show different size keys for the same thing (or what looks like the same thing) For example. I have one acct_ key that has a different length than another one from the example. Like this one stripe_user_id: 'acct_ILdCda3DhGCq0v' has a length of 19
      • benschwarz joined the channel
      • but this one has a length of 21 acct_1B3xNjIN99EayIrI ... so ... um ...
      • is there a data definition of these keys at all?
      • or are they just any length?
      • cba joined the channel
      • cba
        i am making a variable for stripe and don't know where to place it in my cpanel. Does anyone know which folder?
      • cba has quit
      • lwc joined the channel
      • lwc
        has anyone ever made a stripe variable button for wordpress?
      • vbwyrde
        https://stripe.com/docs/api#account shows an acct_ key with 21, for example. But in this case https://stripe.com/docs/connect/standard-accounts the acct_ key is 19.
      • hrmmm.
      • are they two different keys with the same prefix maybe??
      • hmmm
      • ok ...confused.
      • lwc
        I need to be able to have my clients pay different amounts, not set ones on my site
      • lwc has quit
      • tr12_ joined the channel
      • tr12_
        vbwyrde: stripe IDs are variable length, but guaranteed to be < 255 chars: https://stripe.com/docs/upgrades#what-changes-d...
      • nickdnk has quit
      • carl_: if you're still around, stripe.js v2 is fine to use for PII
      • vbwyrde
        ah
      • nickdnk joined the channel
      • tr12_
        stripe.js v3 is specifically in response to PCI DSS 3.2, but PII isn't in scope for PCI DSS
      • vbwyrde
        but the prefix defines what the key is for then... so there is only one acct_ key and it's used only for one purpose throughout the system. it's not like there are two variables which both have an acct_ prefix... is that right?
      • tr12_
        the rest of stripe.js v2 functionality should eventually get ported to v3, but it hasn't happened yet
      • vbwyrde: in practice, I believe that to be true, but I wouldn't rely on that being true
      • vbwyrde
        hm
      • carl_ has quit
      • tr12_
        you're never given a bare ID - it always comes with a specific description of what that ID is for
      • vbwyrde
        when you say a specific description of what the id is for ... can you give me an example?
      • tr12_
        per the "what changes does stripe consider backwards compatible" description, you should consider IDs to be opaque strings with no particular format
      • ie:
      • when you get a payout object, it has an ID, but it also has an `object` field which has the value "payout"
      • vbwyrde
        hm
      • tr12_
        so you know it's a payout specifically - you don't need to infer that from the payout ID starting with po_***
      • vbwyrde
        ok so I guess there is no point in trying to validate that keys are correct based on their format after all
      • tr12_
        API keys in particular?
      • vbwyrde
        well I was doing a IsValidStripeConnectAccountKey when I get the key back to make sure that's valid
      • but now I see that's a moot point
      • tr12_
        ie: starts with acct_*?
      • vbwyrde
        I was comparing size and starts with acct
      • tr12_
        yeah
      • vbwyrde
        but now I see size is variable, and I have no guarantee that it will start with acct_ either
      • tr12_
        like, some very old accounts have IDs that start with user_
      • vbwyrde
        so ... totally useless effort
      • tr12_
        and even older ones have UUIDs
      • vbwyrde
        if it can ever change then I don't want to use it.
      • nickdnk has quit
      • I'll just screw myself up the next time they change the format
      • so never mind.
      • I'll do without validating
      • tr12_
        yeah, that seems reasonable
      • like, if the API is giving you back mangled data, you're already sort of hosed
      • vbwyrde
        I'm not happy with it, but that's the way it is. I prefer to validate before I commit generally. That's kind of SOP for my coding style. No matter. I will live with it.
      • tr12_
        the other way to do it is to warn when the data doesn't match your expectations
      • log it somewhere, send yourself an email, generate an error event, whatever
      • vbwyrde
        yeah... but I can't have any expections in keys that can change size and prefix
      • tr12_
        I mean, they change in prefix very rarely
      • vbwyrde
        that's not a good thing.
      • tr12_
        in the last 4 years, I think there have been 2 (citation needed) changes in ID prefix
      • vbwyrde
        yeah, better to avoid validation then.
      • no sense in hosing my code and my users every 2 to 4 years