#stripe

/

      • John007 joined the channel
      • John007
        Hi, could you help me please, We have custom accounts on board. Can account receive\payout money with min required info for USA, will his account become verified without additional information? https://stripe.com/docs/connect/required-verifi...
      • JoshB joined the channel
      • JoshB
        Hi! I'm having issues using a Stripe plugin for my wordpress site. I'm getting an error notification that said the Stripe API request was invalid. I can see the request on my Stripe dashboard in the Log, but the transaction doesn't show up, and the request seems to be missing a lot of data, and it's not specific to the request. Has anyone here seen this before?
      • On the Log, the request status is 200, but it didn't actually work
      • eric_lagergren joined the channel
      • agitator joined the channel
      • JoshB has quit
      • Eli joined the channel
      • Eli is now known as Guest42631
      • energify
        Is there anybody from the Stripe team here?
      • Guest42631 has quit
      • zac joined the channel
      • zac has quit
      • quit
      • energify has quit
      • irctc455 joined the channel
      • rgbiv joined the channel
      • torgosPizza joined the channel
      • irctc455
        has anyone used the ACH transfer ?
      • torgosPizza has quit
      • torgosPizza joined the channel
      • torgosPizza has quit
      • irctc455 has quit
      • tr12 joined the channel
      • ann joined the channel
      • uilnivek joined the channel
      • MDrollette joined the channel
      • uilnivek has quit
      • tr12 has quit
      • tr12 joined the channel
      • Moose__ joined the channel
      • Moose_ has quit
      • JDHawke joined the channel
      • Moose_ joined the channel
      • John007 has quit
      • agitator joined the channel
      • Moose__ has quit
      • JDHawke has quit
      • tr12 has quit
      • ann has quit
      • Peder_ has quit
      • torgosPizza joined the channel
      • tiger_ joined the channel
      • tr12 joined the channel
      • tiger_
        rails q: I use @description = "premium package" in my controller and want to use <%= @description %> with the checkout script in my view. I currently only get premium. Adding .inspect gets met "premium. again without the whitespace and package. Any idea what the problem is?
      • tr12
        if you change the line to be @description = "beep boop", what's output?
      • tiger_
        beep
      • (i removed the .inspect)
      • tr12
        at a guess, you need to stick quotes around <%= @description %>
      • presumably you're rendering html like `data-description=beep boop`
      • which a browser will understand to be `data-description="beep"`
      • and then an unrelated `boop=""` property
      • tiger_
        thank you
      • it works :)
      • tr12
        \o/
      • tiger_ has quit
      • orbyt_ joined the channel
      • uilnivek joined the channel
      • eric_lagergren joined the channel
      • Moose_ has quit
      • Moose_ joined the channel
      • Moose_ has quit
      • eric_lagergren joined the channel
      • ltxda joined the channel
      • kylefox joined the channel
      • kylefox
        I'm looking through the list of events in the API docs and am a bit puzzled by how charges work — there doesn't seem to be an event type that represents all captured charge events. What I means is: when a charge is created and captured simultaneously, "charge.succeeded" with `captured=true` is fired. But if a charge is created and then captured later, the events fired are (1) "charge.succeeded" with `captured=false`, and then (2)
      • "charge.captured"
      • Am I understanding that correctly? There's no single event that represents a capture? (whether that's an immediate capture or a delayed capture)
      • rogue_koder joined the channel
      • luke joined the channel
      • luke
        hello
      • luke is now known as Guest11495
      • Guest11495
        hello?
      • kylefox
        Sup
      • rogue_koder joined the channel
      • Guest11495
        Hi Kyle, I am having an issue on my site. When trying to make a payment, I am getting "My account is not currently making live charges"... Any ideas?
      • tr12
        kylefox: that's correct
      • kylefox
        My guess would be that the API requests are being sent to Stripe in test mode
      • Guest11495
        That's what I have read. But I've checked that? Let me triple check. Cheers anyways
      • kylefox
        tr12: thanks. So I guess I need to listen for both events and consider ("charge.succeeded" && captured = true) and "charge.captured"
      • tr12
        kylefox: backing up a bit, what are you actually trying to do?
      • kylefox
        Guest11495 is it possible your Stripe account isn't completely setup? I'm not sure if there are requirements that must be met before a stripe account is allowed to charge. (It's been a while since I setup a fresh stripe account)
      • tr12
        those events are mostly useful if you're acting as a analytics connect app
      • kylefox
        tr12 That's pretty much exactly what I'm doing :)
      • tr12
        (ie: you're collecting statistics for somebody else's business)
      • ah, got it
      • then yes
      • kylefox
        tr12 I'm calculating a commission anytime a payment is successful
      • Guest11495
        I have a wordpress site running Paid Memberships Pro and the Gateway Environment is set to Live/ Production. I basically want users to be able to come to the site to setup a direct debit for my contracted services. Yes, it's a recently new account.
      • everything is good on my side, is there something I need to check on stripes side?
      • tr12
        Guest11495: have you received any email from stripe?
      • Guest11495
        Ah yeah, in terms of confirmation
      • and card setup fine
      • kylefox
        tr12 Any guesses why the events work that way? I would've suspected that "charge.captured" fires in both circumstances
      • tr12
        Guest11495: you may want to get in touch with support, then: support.stripe.com/email
      • kylefox: charge.captured is closer to a special case of "charge.updated" than a separate semantic event
      • (I personally don't think there are especially many cases where separate charge+capture actually makes sense, but that's just me)
      • Guest11495
        Okay no worries, just thought it would have been a common issue. Thanks for your help anyway
      • tr12
        np
      • kylefox
        Yeah, it would be nice if "charge.captured" was fired even if it's an immediate capture. Ah well. I don't need to agree with the API semantics, as long as I can understand & build against them ;)
      • lombrozo has quit
      • Guest11495
        Hi Guys, to update you. I found what the issue was. When logged into Stripe, I had a notification to verify my mobile number again. Once I done that, It fixed the issue. Just in case you see that again.
      • JDHawke joined the channel
      • orbyt_ has quit
      • Guest11495 has quit
      • JDHawke has quit
      • tr12 has quit
      • rgbiv has quit
      • snax has quit
      • snax joined the channel
      • sg27 joined the channel
      • manwithstripes joined the channel
      • manwithstripes
        can I create a destination charge with a Standard Connected Account?
      • The docs seem to suggest it's only available with express and custom
      • sg27
        Hello. does anyone know how cancellations work for stripe plans with a trial period? Specifically, if my cancellation logic is set to cancel at period end, and a user cancels before their free trial is up becuase they decided they don't want to be billed or continue the service, how to I verify that they aren't charged?
      • Akashic_ joined the channel
      • TheAdversary joined the channel
      • cperciva__ joined the channel
      • orbyt_ joined the channel
      • soundstruck joined the channel
      • TheAdversary joined the channel
      • Akashic_
        Hi, I am interested in integrating Bitcoin payments / donations into a Squarespace site and was wondering whether anyone here has any experience with that or has any advice they would be willing to offer. Many thanks.
      • cperciva_ has quit
      • soundstruck
        hopefully easy question: Can customer cancel a Stripe subscription "outside" of my application via Stripe directly? Or would any subscription.deleted events be solely initiated via either myself via the Stripe Dashboard, OR, something I've built into my app? Just trying to understand if subscription.deleted events can occur "outside my knowledge".
      • (tia)
      • Joe__ joined the channel
      • sg27
        @soundstruck AFAIK the only way a subscription.deleted event can occur is if a request to delete the sub is sent to the API, OR if you delete it manually from within the dashboard. Anyone trying to forge a request to delete a sub from outside your app would need your secret key
      • (in order to interact w/ the API that is)
      • soundstruck
        sg27 thanks, that's what I was thinking. Just didn't know if through some other means (like an email link that Stripe sends out if emails get generated for failed payments or whatever), if a customer would be able to cancel directly. I'm getting into the webhooks part of dev, trying to get my arms around the most important events to handle for subs.
      • I was confused about why I might need a handler for subscripton.deleted, if the cancellation would be initiated from my own app.
      • sg27
        @soundstruck I don't think that would be possible, but I'm relatively new to stripe also, so don't quote me. My best advice is, be paranoid just in case
      • @soundstruck well for example I use subscription.deleted events to determine when a subscription is deleted and to process appropriate business logic for taking away access to things, updating my local database with the timestamp it ended, etc
      • soundstruck
        sg27, but does the customer initiate the cancellation via your app? or you just don't consider it "officially" cancelled until you get the hook back from Stripe?
      • sg27
        yes they do, but depending on why they're cancelling it may or may not happen immediately. For example if they are upgrading to a more expensive plan, the current plan is immediately cancelled, they're refunded for the time they didn't use on it, and then the new plan is started
      • user711 joined the channel
      • user711
        hi
      • sg27
        however if they are downgrading or just cancelling all together, then there is no refund and I send the cancellation even with "at_period_end=True"
      • from the stripe docs: "If you instead cancel a subscription at the end of the billing period, a customer.subscription.updated event is immediately triggered. That event reflects the change in the subscription’s cancel_at_period_end value. When the subscription is actually canceled at the end of the period, a customer.subscription.deleted event then occurs."
      • so in the event they are canceling at the period end, I don't want to modify their access right then. Instead I leave everything alone, but I have a webhook listener waiting for the subscription.deleted event, and when it gets it, then I update their access
      • soundstruck
        sg27 ah, thanks. Yeah that makes sense. Guess I'm going to have to draft up all these scenarios. My app is pretty simple...2 plans, either annual or monthly. thx for your response. :-)
      • sg27
        no problem, check this out ... it might help: https://stripe.com/docs/subscriptions/canceling...
      • soundstruck
        sg27 ok I'll read through that, thx!
      • DexDeadly has quit
      • orbyt_ has quit
      • sg27
        no problem. If you happen to find an answer to my question above along the way. please let me know :)
      • for reference: "Hello. does anyone know how cancellations work for stripe plans with a trial period? Specifically, if my cancellation logic is set to cancel at period end, and a user cancels before their free trial is up becuase they decided they don't want to be billed or continue the service, how to I verify that they aren't charged?"
      • soundstruck
        sg27 ok will do. yeah, the subscription docs I'm reading don't really touch on cancellation during trial.
      • sg27
        I'm just going to give one of my plans a 60 second trial period and see what happens, lol
      • soundstruck
        sg27 I just canceled one of my trialing test subs, and it removed the pending invoice (I used cancel "immediately").