#stripe

/

      • irctc534 has quit
      • birdy247
        @ywain so I cant do anything to reduce those fees?
      • DHS_ has quit
      • spoof3r joined the channel
      • gingerale joined the channel
      • Peter__ joined the channel
      • mcwendy joined the channel
      • spoof3r has quit
      • ywain
        birdy247: it's not possible to have reduced fees for charges created specifically by your platform directly on the connected accounts. You can either: - keep creating charges directly, and the account's rates will be applied (so it'd be up to each account to negotiate reduced rates), or - create charges with `destination`, in which case your platform's rates will be applied
      • mcwendy1 joined the channel
      • Peter__ has quit
      • peter___ joined the channel
      • NickG365 has quit
      • mcwendy has quit
      • NickG365 joined the channel
      • mcwendy1 is now known as mcwendy
      • korben
        ywain: If they use managed accounts, would the connected accounts still be on the default fee structure? Or would they derive from the platform?
      • birdy247
        @korben good question
      • nilsmunch has quit
      • ywain
        I think managed accounts get the default fee structure for their country when they are created, just like standalone accounts. But typically with managed accounts, charges are created with `destination` so the account's own plan is not relevant
      • korben
        birdy247: Is there a reason you're doing a charge as the connected account? You could always just override the statement descriptor and do a destination charge, unless it's for some weird accounting purposes.
      • vincentcr joined the channel
      • Peder_ has quit
      • birdy247
        @korben I thought this changed all the legal implications
      • Guest___ has quit
      • i.e. if the connect account were to go bust
      • who would be responsible
      • nilsmunch joined the channel
      • korben
        @korben Yeah, the liability would fall on you in that case.
      • afaik
      • #notalawyer
      • birdy247
        its annoying in a way
      • because I charge a flat %
      • so I consume the stripe fees
      • so the lower the stripe fees, the less margin it eats out of my flat %
      • korben
        Gimme one second. I'm gonna check something.
      • birdy247
        ok
      • korben
        birdy247: Yeah, I think I'm correct.
      • nilsmunch has quit
      • Brig joined the channel
      • Brig
        We are trying to process payments through the dashboard but a number of them failed fraud check? These are business expense cards, any idea how to remedy so we are able to bill our customers?
      • vincent joined the channel
      • birdy247
        @korben Stripe provides you with the flexibility to set a custom statement descriptor to either the platform or your user’s business name, which will appear on customers’ credit card statements.
      • is that true?
      • I thought it gave full flexibility for names outside of that
      • Reh has quit
      • bill joined the channel
      • bill is now known as Guest52571
      • Guest___ joined the channel
      • Guest52571
        Working through this - all in test mode atm. Really great setup, thanks. Trying have an account connect to my platform.
      • bobwalsh joined the channel
      • bobwalsh
        having an issue changing a users subscription from cancel_at_period_end is false to true: Stripe::InvalidRequestError: (Status 400) (Request req_8MOJsrZF1OxGAB) Received unknown parameter: cancel_at_period_end
      • User______ joined the channel
      • korben
        birdy247: I think that's just phrased poorly. I'm fairly certain you can set it to whatever you want.
      • Guest___ has quit
      • Guest52571 has quit
      • ywain
        bobwalsh: when cancelling the subscription, the parameter's name is `at_period_end`: https://stripe.com/docs/api#cancel_subscription...
      • User______ has quit
      • bobwalsh
        still have the same problem: 1. subscription = customer.subscriptions.retrieve(user.stripe_subscription_id) 2. subscription.at_period_end=true 3. subscription.save gets back: Stripe::InvalidRequestError: (Status 400) (Request req_8MOR0N5lGO39k0) Received unknown parameter: at_period_end
      • mcwendy has quit
      • ywain
        bobwalsh: cancelling a subscription is a different request than updating it: https://stripe.com/docs/api/ruby#cancel_subscri...
      • bobwalsh
        I don't want to cancel it; I want to update if from cancel_at_end = false to true
      • ywain
        bobwalsh: to do that, you need to cancel it with `at_period_end` set to true
      • bobwalsh
        but so it will be changed to at_period_end = true, but won't perform a delete?
      • ywain
        bobwalsh: yep. in other words, it will schedule the subscription to be cancelled at the end of the period, not cancel it right away
      • bobwalsh
        so subcription.cancel(at_period_end: true).save ??
      • nhwilly joined the channel
      • nhwilly
        hey guys. great app. in development, webhooks set up and testing fine.
      • not getting an event when a customer joins my platform.
      • not sure what I'm missing as tests run fine and its set to all events...
      • koopajah
        nhwilly : can you give more information?
      • nhwilly
        ok, using the authentication oauth process. they click and I send them to stripe where it asks them to connect an existing account to my app.
      • tictacjoe has quit
      • I click OK and they are returning to my site with the access_token and publishable key, etc.
      • just not firing a sign up event.
      • Brig has quit
      • tictacjoe joined the channel
      • i presume that event fires on my platform account and not theirs, correct?
      • koopajah
        there are no events at all for that so it's expected
      • nhwilly
        well that's the easy one, eh? thanks
      • koopajah
        sure! :)
      • tictacjoe has quit
      • nhwilly
        what's the best way to know if someone signs up? track it on my end, right?
      • when the token returns...
      • tictacjoe joined the channel
      • bobwalsh
        ywain: so in ruby that's subscription.cancel(at_period_end: true) then subscription.save ??
      • koopajah
        well your code is already taking care of that since the user is redirected to your website and you exchange the authorization code for their credentials. So at that step you already know about the connection
      • nhwilly
        ok, thanks guys. i get it. on to the next step!
      • love the platform.
      • hey one more things.
      • koopajah
        bobwalsh no it's customer.subscriptions.retrieve("sub_8MOfbnLOOj0PNu").delete(at_period_end: true)
      • bobwalsh
        got it: thanks!
      • nhwilly has quit
      • sicimi joined the channel
      • nilsmunch joined the channel
      • sicimi
        Hello, I have a quick question,
      • if I use stripe.js to capture credit card, I get token, and when I sent that token to php via ajax
      • korben waits for it...
      • how can I make sure that someone didn't tamper with that token
      • lexton has quit
      • how can I make sure that token is valid
      • korben
        sicimi: You can retrieve the token again using the ID and the Retrieve a Token [1] API Request.
      • sicimi
        I had that in mind,
      • the second question
      • will retrieve_token use up my token
      • since token is for one-use
      • korben
        It's especially useful for guaranteeing that they didn't try and bypass CVC checks by tampering with your form/javascript.
      • Nope.
      • It's not going to be used until you (a) attach it to a customer or (b) charge it.
      • sicimi
        thank you very very much korben
      • korben
        You're very welcome, freen. :D I hope that answered your questions.
      • sicimi
        you did :)
      • korben
        (╯°Д°)╯︵ /(.□ . \)
      • aea joined the channel
      • aea
        i am attempting to integrate stripe into an android application
      • lexton joined the channel
      • in my layout.xml file, i am getting this error: unsupported type 'TextView'
      • any idea how to fix this?
      • ftknox has quit
      • korben
        aea: What are you nesting the TextView under?
      • aea
        nested under LinearLayout
      • birdy247 has quit
      • korben
        Hrmm. Mind sending over the xml in a gist?
      • aea
        how do i do that?
      • korben
        Click on the "Text" tab in the bottom left, then copy and paste the contents into a new gist at https://gist.github.com/
      • Make it private and send me a link.
      • peter___ has quit
      • aea
      • thanks!
      • korben
        aea: I'll be back to you in a shake.
      • vincentcr joined the channel
      • aea: So I'm not seeing any errors in this XML. In fact, it renders fine on mine. There are a few minor nitpicky details that it yells about as a warning, but nothing significant.
      • What android version are you using to render the layout?
      • I'm using 23.
      • I'm using 23 (v6.0).
      • aea
        21 (v4.0)
      • i was using 23 before but my gradle was giving me problems
      • gnoze5 has quit
      • korben
        Yeah, that's my target version. Still nothing. Interesting. You might wanna just try googling the error message. There's nothing obviously wrong with this layout, so the problem might lay in the weeds of your gradle configuration.
      • sicimi has quit
      • aea
        okay ive been googling and have not found anything
      • any other suggestions in terms of what could be the problem
      • roler joined the channel
      • roler has quit
      • roler joined the channel
      • korben
        Hrmm. Sorry, not really. I'm only half way through my Android development textbook. lol. You might see if there's an #android channel on IRC. They could possibly help.
      • on Freenode* rather.