#stripe

/

      • YoY joined the channel
      • YoY_ has quit
      • SteenJobs has quit
      • selbekk joined the channel
      • selbekk
        hi there
      • quick question - when I download my payments as CSV (Dashboard -> Payments -> Export all payments), I'm having some encoding issues with the result with a few special characters (æøåÆØÅ), characters which is supported in UTF-8. What is the encoding you export data in?
      • riverfoot has quit
      • vincentcr joined the channel
      • rubyonrailed joined the channel
      • deadghost has quit
      • KieronWiltshire has quit
      • as far as I can see it's exported as Windows 1252 - wouldn't UTF-8 be a better choice for us international consumers? :)
      • vincentcr has quit
      • yancy has quit
      • rtucek joined the channel
      • rtucek has quit
      • deadghost joined the channel
      • ta__ has quit
      • ta_ joined the channel
      • ta_ has quit
      • rtucek joined the channel
      • rtucek has quit
      • vincentcr joined the channel
      • vincentcr has quit
      • dev2lead has quit
      • dev2lead joined the channel
      • briandh joined the channel
      • briandh
        I just wanted to say thumbs up for your excellent documentation.
      • After working with Japanese payment processors for years, I'm starting to believe in the future again.
      • dev2lead has quit
      • selbekk
        +1 for that - you're a pleasure to integrate with!
      • rtucek joined the channel
      • Dorf_ has quit
      • Dorf joined the channel
      • ta_ joined the channel
      • sunburn joined the channel
      • rtucek has quit
      • timbartley joined the channel
      • vincentcr joined the channel
      • deadghost has quit
      • timbartley has quit
      • qar joined the channel
      • vincentcr has quit
      • dev2lead joined the channel
      • irsol has quit
      • Baadier joined the channel
      • Baadier has quit
      • deadghost joined the channel
      • dev2lead has quit
      • irsol joined the channel
      • AllErrors has quit
      • dynmeth has quit
      • dynmeth joined the channel
      • jan_byte9 joined the channel
      • jan_byte9
        hi, I'm working on a Stripe integration and, after creating token, getting a failure on a \Stripe\Charge::create
      • vincentcr joined the channel
      • exception 'Stripe\Error\Api' with message 'Invalid response object from API: 400 Bad Request: invalid header value (HTTP response code was 400)' in /Stripe/stripe-php-3.9.2/lib/ApiRequestor.php:85
      • ywain
        Hi jan_byte9. Can you share your code for creating the charge? Using gist.github.com or pastebin.com
      • ajBeechwood joined the channel
      • dynmeth has quit
      • ajBeechwood
        Any devs online?
      • ywain
        Hey ajBeechwood
      • dev2lead joined the channel
      • vincentcr has quit
      • GitGud is now known as GitGub
      • rtucek joined the channel
      • jan_byte9
        Hi ywain, charge create code on http://pastebin.com/pBsURdsB
      • ajBeechwood
        @ywain: Hi there! This should be a quick one... Is there any way to persuade checkout.js to ask for and return a phone number for the cuatomer?
      • err customer
      • ywain
        ajBeechwood: unfortunately, no, there's no option to collect phone numbers at the moment :( sorry
      • Martyn has quit
      • ajBeechwood
        @ywain: no worries just checking. And I'm guessing no way to poke that into the forms that are generated for checkout using js manipulation?
      • ... i'd expect that's either not possible or definitely not encouraged
      • ywain
        ajBeechwood: no, as Checkout runs in its own iframe
      • jan_byte9: that code looks okay to me. I checked your account and it looks like the charge creation requests don't appear in your logs. Did you set up your secret API key correctly?
      • c00ltime joined the channel
      • SteenJobs joined the channel
      • ajBeechwood
        @ywain: Yes. stripe's space. Its kinda a shame because the checkout captures everything else we need to have a dialogue with that customer without another stage of info capture.
      • SteenJobs has quit
      • Vivek_ has quit
      • jan_byte9
        ywain: I beliewe so, will double check
      • ajBeechwood
        @ywain: Thanks. I suspected so after bashing around the documentation so it was a long-shot. If stripe's open to any RFCs and there's no reason a phone number should not be captured alongside card details it would be useful to have as an option in future. I guess its no less secure/personal than asking for an email address
      • x-alunda joined the channel
      • sunburn has quit
      • ywain
        ajBeechwood: definitely. And actually, Checkout _can_ ask for a mobile phone number for its "Remember me" feature -- but that number is not sent to the merchant. I'll pass your feedback along to the Checkout team
      • x-alunda
        good morning everybody! I'm integrating stripe, i'm in testing mode and i'm testing all card numbers. My problem is that the card supposed to "Charge will be declined with a card_declined code and a fraudulent reason." actually accepts the card.
      • Can someone explain me what happens ?
      • ywain
        Hi x-alunda. Are you using our Checkout form? https://stripe.com/docs/checkout
      • ajBeechwood
        @ywain: Ah. That was it! Yes I did use remember me to start with but found that it was kinda TOO sticky. We had issues with it not updating the expiry date on test card numbers with that feature enabled
      • x-alunda
      • ywain
        x-alunda: alright. So that card number will pass Checkout's validation. However, when you try to use the token to actually create a charge, it will be declined with a fraudulent reason
      • x-alunda
        So this is a server side handle, I'm not there yet
      • jan_byte9
        ywain: thanks, that was it, some extra encryption/decryption on the secure key was causing trouble, thanks again for pointing me towards the right direction!
      • x-alunda
        thanks a lot @ywain
      • ywain
        jan_byte9: you're welcome! :)
      • ajBeechwood
        @ywain: but yeah, if there's no tech/sec reason not to allow a phone number to be captured like you do with the email address, and it was possibly turned on by a checkout.configure option, then it would be really useful to get all the basic info from checkout rather than have the application ask before or after checkout.
      • ywain
        x-alunda: you're welcome too :)
      • ajBeechwood
        ...one less obstacle
      • ywain
        ajBeechwood: I definitely agree. The Checkout team has been working on some major internal changes to ease internationalization (among other things). I think once that's done, they'd certainly be open to consider adding a field for phone numbers with nice country-specific formatting
      • ta__ joined the channel
      • ajBeechwood
        @ywain: Well the validation and presentation in the checkout is great at the moment. Another reason we were never tempted to try and cook something up ourselves. Although I was a bit spooked seeing it load all the postal town vs postcode data at first. But it really works well. So yeah, I'd greatly appreciate it if you could pass a shout to the team to ask for phone number too in future versions!
      • vincentcr joined the channel
      • @ywain: Thanks as always!
      • ywain
        np :)
      • sunburn joined the channel
      • ta_ has quit
      • vincentcr has quit
      • michalc
        Is there a difference, in terms of bank communication/validation, between a discount code that makes the first payment of a subscription 0.00, and a free trial that makes the first payment of a subscription 0.00. I ask because we have successful payments after the former, but none after the latter.
      • briandh has quit
      • ywain
        michalc: there shouldn't be. If an invoice's total is $0 (for any reason: coupons, trial periods, negative invoice items...), Stripe does not attempt to charge the card
      • michalc
        ywain: thanks
      • rtucek has quit
      • Clover joined the channel
      • Clover
        Hi Everyone, really need some help understanding how connect works
      • ywain
        Hi Clover, what's the issue?
      • Clover
        So, at the moment, I have a platform account that I manage payments with. A user will purchase a good through our application and the token will be generated using an account/card on our platform. We add an application fee of 10% to each order, so for a £10 order, we expect to receive £0.50 - We also would like for Stripe to take their fees from our application fee, so we end up with around £0.28 in the end. My dashboard looks like
      • The code I'm using to apply the application fee is: http://i.imgur.com/OERBLNI.png - apologies for the terrible idea of a string compare rather than a null comparison 😅
      • ywain
        Clover: you meant a 5% application fee rather than 10%, right?
      • Clover
        Ahh, yeah, sorry about that haha
      • ywain
        Clover: because you're using the 4242...4242 card number, the international pricing is applied, which results in a Stripe fee of £0.49 (2.9% + £0.20)
      • Clover: you can find a UK number here: https://stripe.com/docs/testing#how-do-i-test-c.... (4000008260000000)
      • Clover: otherwise, your code is correct. You're creating a £10.00 charge with a £0.50 application fee, which nets you £0.01 since you also pay the £0.49 Stripe fee
      • Clover
        Is there any way to forbid international payments using the platform, as to avoid the higher fee (for now?)
      • hirvi
        ywain: wow is that new? I don't recall there being non us test cards.
      • good addition
      • ywain
        hirvi: it's pretty new. I added them myself last week :)
      • Clover: sure, with some custom logic. Basically, when you receive the card token ID on your server, you'd use it to retrieve the full token object (https://stripe.com/docs/api#retrieve_token), then check the token's `card.country` attribute
      • consti joined the channel
      • Clover: and if the country is not "GB", you'd stop the payment flow and display an error message explaining that non-UK cards are not allowed
      • vincentcr joined the channel
      • Clover
        ywain: Thanks, you've been a massive help - was scratching my head for a bit there
      • ywain
        Clover: np, that's what I'm here for! :)
      • vincentcr has quit
      • rtucek joined the channel
      • rtucek has quit
      • Scurk joined the channel
      • Scurk has quit
      • CoolBreeze has quit
      • GLaw joined the channel
      • GLaw
        hello
      • any support person online who can help me with a webhook problem
      • more specificaly with the account.application.deauthorized event
      • ywain
        Hi GLaw, what's the issue?
      • Clover has quit
      • GLaw
        i have an user connected to my app
      • when he revokes his acces i dont get any notification of that
      • the webhook test option in my dashbord settings works fine
      • i also got an email yesterday that Stripe will stop sending me webhooks because there was a problem
      • is that the reason why i dont get any webhook events?