#stripe

/

      • Bakura has quit
      • Bakura joined the channel
      • lamarus joined the channel
      • cover joined the channel
      • rhysyngsun joined the channel
      • gdespres joined the channel
      • timtch has quit
      • ripzay has quit
      • halfamind joined the channel
      • mikeybisbo has quit
      • sivy has quit
      • Dededede4 joined the channel
      • Dededede4
        hello
      • cover has quit
      • gdespres has quit
      • For "Subscribing a customer to a plan" in php
      • how to ? because https://stripe.com/docs/api/php#create_subscrip... required a CUSTOMER_ID
      • ( sorry for my bad english )
      • waseem joined the channel
      • Woet
        how do you mean?
      • waseem
        Hello , anyone around that can help me with a question
      • Woet
        you create a customer and then add a subscription to it
      • waseem: just ask
      • alsobrsp has quit
      • csurap joined the channel
      • Dededede4
      • "card" => "tok_103mGB2169F45ccsXvxLDAaZ" // obtained with Stripe.js
      • waseem
        ok Woet, I am developing a Marketplace type product. I have all the basics working from previously having done the checkout code. Anyway, I need to split Payment A between Seller B and Seller C. I am using stripeJS , as don't want card details touching the server side. Do I need to take money into one account and then split between B and C ?
      • Dededede4
        if i don't no use stripe.js ?
      • Woet
        Dededede4: what do you use?
      • jay_ joined the channel
      • Dededede4
        in a website
      • x)
      • jay_ is now known as jay3686
      • i don't like use stripe.js
      • Woet
        Dededede4: okay, what do you use?
      • Dededede4
        i I want my server retrieves the blue card numbers and asks stripe to create the subscription.
      • Woet
        Dededede4: what do you use to obtain the token
      • waseem: you can use stripe connect or stripe transfer
      • Dededede4
        Woet: is my question :D
      • ripzay joined the channel
      • ripzay is now known as Guest27606
      • Woet
      • Dededede4
        I did not need token if I use curl, but i need it if use php ?
      • waseem
        OK Woet, all accounts are signed up with Stripe Connect. So I use Stripe js to create the token, token is sent back to the server. I use server to create a charge for Seller B , (charge goes through ok), i then use the same card to create a charge for Seller C (using a different API key linked to Seller C's account). I get back the error saying the token (ie card) was created against a different account.
      • Woet
        Dededede4: how do you get the creditcard information otherwise?
      • Bryan_ joined the channel
      • waseem: errm, you want 2 separate charges?
      • Dededede4
        Woet: in a form in my website :D
      • waseem
        I think I might have been approaching it incorrectly Woet, but yes that what I was doing. But it seems I need to take the payment into Account A and send a transfer to B and C (for their respective amoounts)
      • Woet
        Dededede4: you mean you POST the cc info to your server?
      • waseem: you are neither B or C, right?
      • Dededede4
        Not yet, but this is the idea Woet :D
      • Bryan_
        Is there any way to use Stripe Checkout and sell multiple products? I have a small site with 10 products. A purchase may incude three products.
      • Woet
        Dededede4: are you PCI compliant?
      • Bryan_: stripe checkout is just to gather CC info
      • Bryan_: how many products/how many charges is up to your backend
      • waseem
        yes Woet , I will be A (the person paying off his invoice) A is just paying off the invoice , code has to do the split
      • Bryan_
        so I create a button for each product. Then how do people checkout?
      • Woet
        Bryan_: stripe checkout turns their CC info into a token
      • Dededede4
        Woet: Maybe not. But in any case I see that the functionality is available in CLI and not php
      • Woet
        Bryan_: the token goes to your backend, your backend uses that token to charge their creditcard for whatever amount
      • Dededede4: they are available everywhere
      • Dededede4: you are not PCI compliant, so you're not allowed to receive or touch their creditcard info
      • Dededede4: use stripe checkout or stripe JS to turn the info into a token and then post the token to your backend
      • Bryan_
        So do we need a cart setup as well? I see Checkout has a Pay $18 button for example.
      • Woet
        Bryan_: yes, you can pass an amount to stripe checkout which will be shown to the user
      • Bryan_: it will not charge the user, that's your backend's job.
      • Dededede4
        Woet: ok :-(
      • Bryan_
        so the Pay button does not do anything?
      • Woet
        Bryan_: it turns the CC info into a token.
      • jklb joined the channel
      • Bryan_
        OK. I have a CMS that does not have a cart option. I want to make a simple checkout process that will allow people to add an item to a cart and checkout. What is best way to do this with Stripe?
      • waseem
        Bryan_: once you have the token you need to submit the form using Javascript and process the payment on your server
      • Woet
        Bryan_: you find a stripe plugin for your CMS
      • Bryan_: what CMS do you use?
      • Bryan_
        I am using Craft CMS. I do not see a Stipe plugin
      • Just one for Single Payments
      • rhysyngsun has quit
      • Woet
        well you will have to write the basket part then
      • stripe doesn't handle that
      • waseem
        Bryan_: does that CMS have a basket plugin
      • Bryan_
        I found this one but it is for single products http://squarebit.co.uk/plugins/charge
      • no basket or cart plugin I can see yet
      • Woet
      • Bryan_
        I did see Snipcart
      • lamarus has quit
      • Looks nice. a Bit pricy though
      • lamarus joined the channel
      • Any experience with Snipcart? Is it better than Foxy? Not familar with it
      • csurap has quit
      • waseem
        Bryan_: well you have to pay I have no idea about either sorry
      • someone11 joined the channel
      • Woet: sorry I know you busy mate but was I right in this assumption ? yes Woet , I will be A (the person paying off his invoice) A is just paying off the invoice , code has to do the split
      • Woet
        hm
      • it's a weird usage of stripe
      • lamarus has quit
      • stripe is meant for you to get paid, not for you to pay others
      • but i guess you could pay yourself and then stripe transfer it to any US bank account
      • someone11
        Hi! Is there any way to apply a coupon to a charge? If no, what is the exact process needed to apply coupons to payments (i don't want recurring payments, just need one payment at a time)
      • Woet
        someone11: just change the amount?
      • rhysyngsun joined the channel
      • waseem
        Woet: this is what I am trying to achieve : https://go.developer.ebay.com/sites/default/fil...
      • same concept
      • Woet
        waseem: you can do that using stripe transfer, as long as all recipients have an US bank account
      • waseem
        hmmm ok
      • I am in the UK so guess we have an issue
      • Woet
        well as I said, i dont think stripe is meant for your use case
      • if you are the sender of the funds that is
      • waseem
        Well i am writing the code to split the payment on behalf of the sender , I am not actually the sender , per say!
      • someone11
        Woet: Ok, so is it possible to decrease coupon redemptions from the API? The client wants to use the built-in Stripe coupon's
      • timtch joined the channel
      • alsobrsp__ joined the channel
      • Woet: In other words, how does Stripe know how many times a coupon was used?
      • Bryan_ has quit
      • Woet
        someone11: you can't use stripe discounts for anything but subscriptions
      • i mean, you could do an ugly hack like a 1 month subscription
      • but i would recommend using your own coupons
      • someone11
        Woet: ok, this words are what i was looking for. Thank you
      • nftc99 joined the channel
      • timtch has quit
      • waseem
        Woet: thanks for the help I found what I needed , this is what i need to do https://stripe.com/docs/connect/shared-customers and stop being lazy trying to hack in the code i had written for something else before .
      • Woet
        but that won't support more than 2 recipients
      • Moazam joined the channel
      • timtch joined the channel
      • it also won't let you in control
      • because one of your recipients will be the master account
      • Moazam
        I am living in UK and my transactions are in USD is there any way I can avoid transaction fees? I am have US dollar account so its really not making sense to pay conversion fees
      • Woet
        so no, i dont think stripe connect will work for you waseem
      • waseem
        OK Woet
      • Woet
        Moazam: pretty sure UK accounts are restricted to GBP
      • why don't you charge your customers in GBP?
      • nftc99 has quit
      • Moazam
        I have no control on this
      • jeregrine joined the channel
      • Any workaround Woet? My all products pricing is in USD
      • Woet
        Moazam: there is no workaround
      • you could contact support and ask whether they can add your USD bank account
      • but i dont think it'll work
      • Moazam
        It's sad, I spent so much time on stripe integration and endup on this issue
      • I will do, Thank you Woet for your help
      • Woet
        no problem
      • Moazam
        @Woet Is there any Stripe support person on IRC for quicker chat?
      • Woet
        im not sure, stripe employees have @
      • but they are mostly engineers and not support
      • Moazam
        Great, Thanks
      • boucher_ joined the channel
      • richardwo joined the channel
      • richardwo has left the channel