#stripe

/

      • hpar
        TravyDale: one of the webhooks, invoice.created will wait for a 200 response before attempting to pay, maybe that? https://stripe.com/docs/api#event_types-invoice...
      • timbartley has quit
      • ftknox joined the channel
      • TravyDale
        Hmm dont think so. Either way, I am running into issues with my webhook not getting a response. I see it coming into my app (I log it immediately, but my app isnt responding with 200). I was worried it was because I was responding too slow
      • hpar
        I think I've seen some webhooks take 20+ seconds to respond and not cause issues, but obviously faster is better =)
      • TravyDale
        Oh.. Well then something is def broken on my end. I will dig deeper. Thanks
      • hpar
        especially if you're still building your integration I'd design that to be pretty fast. worker queue could be helpful here if you have big/slow things to do
      • TravyDale
        I am on the fence. I know I should but all I do is log a record to my DB then return the 200 status. I am guessing I am getting an exception message trying to parse the event
      • dwelch2344 has quit
      • V28 has quit
      • V28 joined the channel
      • V28 has quit
      • Meld052015 has quit
      • MrSam has quit
      • Squirrel_ joined the channel
      • Squirrel_ is now known as MrSam
      • Yep, issue on my end. I responded ok to the event this time. Thanks anyway @hpar.
      • WebDevB joined the channel
      • WebDevB
        Howdy
      • I'm wondering if it's possible to create a chained payment... Basically I want a seller to pay the application and then on delivery the funds get transferred to buyer.
      • Is this possible in stripe?
      • Meld052015 joined the channel
      • hpar
        WebDevB: it may be possible but it sounds a whole lot like "escrow" which is not an allowed use of Stripe according to https://stripe.com/us/prohibited-businesses
      • money transmission / laundering laws prevent a lot of businesses from using such a model
      • that said, there are some ways to make it possible -- the easiest way to find out would be to describe your business to support; someone can take a closer look there: https://support.stripe.com/email
      • WebDevB
        I suppose it's not really escrow as the funds will always go to the seller it's just delayed...
      • Do you think it'll be the same hpar.
      • timbartley joined the channel
      • hpar
        WebDevB: yes, the way you'd need to handle this flow would be to immediately pay the seller and then refund in the case that something went wrong. https://stripe.com/docs/connect/payments-fees
      • you're going to want Connect if you expect to be able to collect a fee as part of that process
      • WebDevB
        Yea that's what I want to do.
      • koopajah has quit
      • Will this work in the UK
      • hpar
        so WebDevB probably the best thing here is to do a "destination charge" as described in that doc, this gives you the most control of flow-of-funds. However, you'll still have to pay your seller right away
      • WebDevB
        Thanks for your help hpar.
      • Will it work in the UK>
      • hpar
        ah sorry WebDevB, I think Connect is US/Canada only right now (though private beta in UK)
      • double checking that
      • WebDevB
        thanks hpar
      • timbartley has quit
      • hpar
        hey, good news, I was wrong! You *can* use in the UK
      • WebDevB
        perfect thanks hpar
      • hpar
        you need a platform with a US/Canada/Australian Stripe account for Managed Accounts if you need that feature https://stripe.com/docs/connect/managed-accounts
      • WebDevB
        which feature is that hpar?
      • hpar
        the ability to create a Stripe account for your seller and control every aspect of it
      • like Lyft does with Lyft drivers, etc
      • _cade has quit
      • Omair joined the channel
      • WebDevB
        ok, so my users would have to create a stripe account first?
      • Omair
        Hello, i have a question regarding stripe recurring payments? Is there a way to setup daily subscription for a specific time or a window of time
      • yshrzn joined the channel
      • yshrzn
        Hi, engineers! Guys, help me get started with managed accounts
      • WebDevB
        hpar : ok, so my users would have to create a stripe account first?
      • yshrzn
        Yes
      • that part is done
      • a stripe account is done
      • it's the second, the managed account I don't know how to create
      • hpar
        WebDevB: yep, or you can have them sign up as part of getting paid.
      • yshrzn
        where do I run that code example
      • Basically, it's a split payment
      • hpar
        WebDevB: in general it's simpler to go with Standalone accounts as documented here https://stripe.com/docs/connect/standalone-acco...
      • emilkarl joined the channel
      • Omair: no, your subscription will run approx. every 24 hours, but there's no guarantee of a specific time
      • yshrzn
        yeah, but my client wants this: a student pays for a bunch of lessons, part of payment goes to the school, part to a 3rd party - an association fee
      • hpar
        Omair: you *can* use the invoice.created webhook to modify a subscription before it gets charged though https://stripe.com/docs/api#event_types-invoice...
      • yshrzn: I was finishing a conversation with another person, please give me a moment to read your question
      • emilkarl
        Hi, I have a customer with a failed payment where the card is declined. After that the subscription has been cancelled. Now I cannot add a new subscription (even a free one) as the charge is still in play i guess. Can I cancel a failed payment?
      • yshrzn
        thanks, @hpar
      • Omair
        If its not specific time can be like close to the time the customer signs up...may be an hour or two plus or minus?
      • hpar
        Omair: it'll run *no less than* 24 hours after the original, likely within ~1 hour
      • WebDevB
        Thanks for all your help hpar!!!
      • hpar
        yshrzn: so the easiest way to test a managed account creation would be to run the curl example shown here and pass managed=true https://stripe.com/docs/api/curl#create_account
      • you would run that in your shell on your development machine
      • Omair
        thanks @hpar !
      • hpar
        anytime! glad to help :)
      • Omair
        I have another question...do you have something equivalent to Paypal mass pay and how difficult is to set it up. Where a transaction is split to multiple vendors instantly automatically
      • hpar
        yshrzn: but in your eventual application, you'll want to create the managed account from your web application after someone signs up. Collect the info you need to set up an account on your system, then create a managed acct on Stripe
      • and then be sure you've got the webhooks you need & understand the process here: https://stripe.com/docs/connect/identity-verifi...
      • Omair: mass payments are not an option right now, you can only split the payment between platform & connected account.
      • yshrzn
        How would I create accounts using my web app then? How do I apply this curl code (I use php)?
      • once I know where to "stick" this code in :))) I'll know the rest
      • hpar
        Omair: there are also special-case transfers which can be used very occasionally for bonuses, etc. to your connected accounts https://stripe.com/docs/connect/special-case-tr...
      • markin
        yshrzn: the php libraries allow you to create managed accounts, I'd recommend reading thoroughly through the managed accounts docs before though since there is a lot of liability with them
      • Omair
        basically we are a gateway for food pantries. Donor select the amount and which pantry they want to donate. We want to keep 4.5% our cost and remaining to the selected pantry or pantries. Is that possible?
      • GitGub joined the channel
      • snax_ joined the channel
      • markin
        Omair: you'd do that with just general charges and application fees, you'd want 1 charge per pantry though
      • yshrzn
        Actually, the liability is not so much of an issue, as the client owns both bank accounts,
      • so, there is a php library that creates managed accounts.... Do you have a link to them?
      • Omair
        What kind of account should i get then?
      • markin
        yshrzn: are these the same business just 2 bank accounts? Managed accounts have an extra fee of .5%
      • Omair: so you'd have a stripe account configured as a connect platform and you'd decide whether each pantry needs a managed account or standalone account depending on how you want liability and user experience to be
      • HexisConsulting joined the channel
      • yshrzn: you said part of it goes to a school and part of it a 3rd party association. That sounds like you don't control all the accounts
      • c00ltime has quit
      • ta__ joined the channel
      • Meld052015 has quit
      • yshrzn
        here's the thing: the owner is a chairman of an association, but he also owns a school. So he oversees both accounts
      • markin
        yshrzn: for that case I would normally use standalone accounts not managed accounts
      • ta_ has quit
      • Bae joined the channel
      • yshrzn
        ok. And can I do a split payment to 2 stand alone accounts?
      • I thought stripe does not allow that
      • that's why part of payment is an application fee, and that how's divided
      • markin
        yshrzn: it does and you'd split the funds the exact same way via the application fee
      • yshrzn
        how?!
      • is there documentation?
      • markin
      • yshrzn
        ok...I'll read thru it, thanks
      • timbartley joined the channel
      • GitGub has quit
      • BUT, it says: CONNECTED_STRIPE_ACCOUNT_ID
      • markin
        so depending on how the flow of funds and stuff should work, either the school or association would charge the student, specify the application fee they wish to keep and the amount of (charge - application fee) would get sent to the other
      • yshrzn
        so there has to be a connected account?
      • Bae is now known as GitGub
      • parinaz joined the channel
      • markin
        a connected stripe account can be a managed account or a standalone account
      • stripe.com/docs/connect/standalone-accounts describes how to connect a standalone account to a platform
      • yshrzn
        ok, I'll take a look
      • parinaz
        Hi
      • markin
        hi parinaz
      • parinaz
        I was told I can get help here with my Stripe payment setup
      • markin
        parinaz: sure we can try to help
      • parinaz
        Thanks I appreciate it
      • I am using Zoey as my e-commerce platform
      • yshrzn
        this might actually be much easier than dealing with managed accounts
      • parinaz
        after setting up Stripe using test API keys and trying to charge a test charge with Stripe test visa debit card
      • It stays in the webpage and doesn't proccess
      • markin
        yshrzn: generally you'd want to use managed account when dealing with needing to create multiple accounts programmatically where the owner doesn't need access to them. So just 2 accounts you probably don't need managed accounts
      • parinaz: have you contacted Zoey support?
      • Omair has quit
      • ta_ joined the channel
      • parinaz
        yes, They said that there might be another stage to set up but I don't know what it can be
      • deadghost has quit
      • I am not sure I can send picture in here, can I?
      • ta__ has quit
      • markin
        parinaz: you'd have to upload it somewhere and post a link
      • I'm confused why they would have sent you here, if they only allow you to enter in api keys (which they actually shouldn't since there is a much better way they should be using), you don't have any control of the integration they do
      • a link to your payment page could also potentially help
      • trustyhank has quit
      • parinaz
      • markin
        I don't think you made that public
      • parinaz
        can you try now
      • gingerale has quit
      • phpeek joined the channel
      • dev2lead has quit
      • markin
        and they asked you for 2 api keys right? a secret one and a publishable one?
      • parinaz
        yes
      • trustyhank joined the channel