#stripe

/

      • Rob_
        Is my connection still active here?
      • dqsf
        Rob_: i don't see a stripe checkout button or code loaded on that page, etc. it just tells me the cart is empty.
      • gambatte joined the channel
      • And its not clear where you can add a cart item
      • dev2lead_ has quit
      • Also, I see you're using wordpress, are you using a plugin here? If using plugins really how you have to set things up will depend upon what exactly the plugin provides
      • and its usually less of a Stripe issue than a setting you have to define in your plugin's settings page, etc
      • ircbaao has quit
      • edrocks joined the channel
      • Rob_
        After I select Checkout - it opens a box with information already filled out - I select OK then I get the invalid error above then it goes to this error: Error: Missing required param: currency.
      • ircbaao joined the channel
      • dqsf
        Rob_: I do not see an instance of Checkout on that page
      • Nor a way to get to your 'store' to add an item so i cannot test
      • joeStubbs joined the channel
      • joeStubbs has left the channel
      • Rob_: that error means what it says, your site / integration is not passing a value for 'currency' when making a request to Stripe
      • If you've written your own code here you'll want to 1) edit the code to pass this currency parameter, 2) if you're using a plugin or something pre-built by a 3rd party talk to them about it
      • lexton joined the channel
      • dev2lead_ joined the channel
      • dev2lead has quit
      • Rob_
        OK, so it is something not on your end?
      • dqsf
        Rob_: you should either talk with your developer or the 3rd party plugin you are using to integrate stripe
      • Rob_
        OK, thanks for the information, hopefully it gets resolved soon.
      • Rob_ has left the channel
      • gambatte has quit
      • Tim has quit
      • deadghost_ has quit
      • gambatte joined the channel
      • OddDuck has quit
      • lexton has quit
      • dev2lead joined the channel
      • OddDuck joined the channel
      • dev2lead_ has quit
      • lexton joined the channel
      • dev2lead_ joined the channel
      • TJIC joined the channel
      • TJIC
        Any Stripe folks here on a Sunday? Expect the answer is "no", but if so I've got a question.
      • dqsf
        TJIC: what's up
      • dev2lead has quit
      • TJIC
        I'm using Capybara to test an app.
      • Including the Stripe checkout portion.
      • A few months ago I'd do the following to have the simulated "user" type in a credit card number
      • page.execute_script(%Q{ $('input#card_number').val('#{card_number}'); })
      • obviously id's of fields in the checkout form changed
      • so I've worked around that
      • but it looks like the Stripe JS got clever. If a human starts typing a CC #, the first '4' is seen by the script and it pops up a little 'visa' icon to the right hand margin.
      • But if a script slams an entire CC# in, this does not fire, and the form will not validate / submit.
      • I've tried faking it out with triggering events
      • * change
      • * keyUp
      • * keyInput
      • etc
      • but either that's not the right approach, or it is and I'm doing it wrong
      • what's the best way to test something like this?
      • (in this entire case, the credit card #s are the official test #s, which I got from Stripe documentation, not that that should have any bearing on anything)
      • agentsmith2 has quit
      • silent because this is a tricky one @dqsf ?
      • pavel_ has quit
      • dqsf
        doing automated testing with checkout.js is quite tricky and subject to changes on our part.
      • egoldblum has quit
      • if possible i'd honestly probably recommend stubbing out checkout and just making a call to https://stripe.com/docs/api#create_token to generate a token in testing, append to form and submit, etc
      • TJIC
        ok, that sounds reasonable
      • let me read that page and see if I fully grok it
      • OK, great, I see how to create a token.
      • dqsf
        Cool, great
      • TJIC
        Are you saying "in testing, do not pop up the Stripe checkout form and fill it out; instead #ifdef the code for testing purposes, and (a) create a token (b) ... do something with it?"
      • I think this is what you're saying. I now have to figure out what 'b' is .
      • dqsf
        yeah
      • TJIC
        looking through my code (written 2 yrs ago)
      • the cart page has
      • dev2lead_ has quit
      • <script src="https://checkout.stripe.com/checkout.j...; class="stripe-button" data-key="<%= @reservation.campground.get_stripe_pk %>" data-description="campsite reservation " data-amount="<%= (@reservation.fee_total.to_f * 100).to_i %>" data-email="<%= current_customer.email %>"> data-allow-remember-me=false </script>
      • and I want to replace that - in testing - with something else
      • can you give me a clue as to what I replace it with?
      • dqsf
        So basically you could create a token, append as an <input name="stripeToken"> to your surrounding <form></form> tag and submit (passing to the form's action as checkout would)
      • mikedizon joined the channel
      • Does that make sense?
      • TJIC
        I was about to say "I don't have a form; Stripe does"...but, no, you're correct.
      • Yes, I think I've got it.
      • Thanks; you've saved me a lot of time!
      • dqsf
        Of course, of course, we're happy to help always
      • TJIC
        (although I reserve the right to come back here in 15 minutes and say "uh, I'm not as smart as I thought I was"... :)
      • dqsf
        haha, no worries, I should be around for a bit. And folks will be back tomorrow
      • dennis__ joined the channel
      • dennis__
        would love to ask a question here
      • is somebody there?
      • dqsf
        dennis__: what's up
      • dennis__
        hi
      • i am looking into using stripe for my start up
      • it is based in the netherlands
      • and i would love to connect it with my rabobank account
      • is that possible?
      • i can't find that info so easily on the website
      • dqsf
        dennis__: if rabobank provides an IBAN its likely you'll be able to add it in your dashboard as the place to take payouts https://dashboard.stripe.com/account/transfers
      • dennis__
        it uses Iban yes
      • if i go to that page
      • then I cannot change to country (only US)
      • thats why i asked the quesiton
      • dqsf
        A US based stripe account can only have a US / USD bank account attached. If you're looking to add a NL based bank you'd want a NL Stripe account. You can usually change the country of your Stripe account if you haven't already received payments, https://support.stripe.com/questions/can-i-chan...
      • Otherwise you can email support for additional questions about bank accounts and transfers, this channel is mostly for technical and code help, https://support.stripe.com/email
      • dennis__
        I dont have an account yet
      • thinking of opening one
      • ah i see
      • then i will send them an email
      • dqsf
        You can definitely sign up, set the country to NL and then add your NL based bank account if that's what you're looking to do though
      • Guest joined the channel
      • nicksloan joined the channel
      • dennis__
        yes that is what i ma looking for
      • ok thats good to ow!
      • good to know
      • dqsf
        Yeah, you can just go to https://dashboard.stripe.com/register, experiment with Stripe and decide to activate later if you want (there's no cost or obligation to there)
      • dev2lead_ joined the channel
      • dqsf running across to the store, will brb
      • stripe195 has quit
      • dennis__ has quit
      • dev2lead_ has quit
      • dqsf has quit
      • dqsf joined the channel
      • dev2lead_ joined the channel
      • pavel_ joined the channel
      • T1m0thy joined the channel
      • pavel_ has quit
      • mikedizon has quit
      • dev2lead joined the channel
      • dev2lead_ has quit
      • dev2lead_ joined the channel
      • dev2lead has quit
      • dev2lead joined the channel
      • dev2lead_ has quit
      • blackfry joined the channel
      • dev2lead_ joined the channel
      • dev2lead has quit
      • dev2lead joined the channel
      • dev2lead_ has quit
      • edrocks joined the channel
      • dev2lead_ joined the channel
      • dev2lead has quit
      • OddDuck has quit
      • TJIC has quit
      • dev2lead_ has quit