#stripe

/

      • customer joined the channel
      • customer
        hello
      • I have a question, if someone could please help me with an answer.
      • mattwc
        customer: just ask
      • customer
        Thank you. I will be beginning my sales process tomorrow. We sell a software product to cafes and restaurants. Can I use the stripe dashboard to setup direct debit and standing order payments with potential customers? (As not all will want to be charged via a card)
      • We are based in Dublin, Ireland.
      • mhenrixon
        mattwc: the success callback of the ajax call never runs
      • DaleK5whr has quit
      • mattwc
        customer: you'd need to set up a page on your website for your customers to enter their bank details and agree to the direct debit
      • customer
        Ok, this is not possible via the dashboard?
      • mattwc
        customer: not via the dashboard, correct
      • customer
        Ah ok, I see. So I can only do credit and debit transactions over the dashboard? Do you have a link to any documentation or help file on direct debits?
      • mattwc
        mhenrixon: im a bit stumped, I'd actually have to dig into the website on a browser to really figure out what's triggering it
      • customer: you don't want to enter credit card details over the dashboard either since that would require a higher level of pci compliance
      • alexgordon joined the channel
      • customer
        Okay, I understand. Considering I might be speaking with potential customers tomorrow, do you have a recommendation for how I could capture their details (even if we do not charge them at that moment)?
      • Thank you for that link.
      • mattwc
        customer: i would just like collect their name and email and send them an email link to an invoice or something
      • customer
        ok, thank you for your advice.
      • Guest65463 has quit
      • Kaylined joined the channel
      • losvedir has quit
      • eacameron joined the channel
      • ile joined the channel
      • ile
        Hi. Can you point me to the docs that talk about creating a subscription that would be like AWS type of subscription - there is no minimum amount (or it is $0) but the bill would be based on usage?
      • Kaylined has quit
      • I suppose that's possible? What I would do is first collect the credit card info and just bill the right amount (that can be anything) at some interval, once a month for example...
      • SpaceGazebo2 joined the channel
      • gitgud has quit
      • customer has quit
      • SpaceGazebo has quit
      • simomed joined the channel
      • simomed
        Hi all
      • is this the official stripe gateway help channel?
      • losvedir joined the channel
      • Shilon has quit
      • mpen
        Is there an API that will tell me what currencies are supported given a stripe_user_id?
      • pjukawil joined the channel
      • pjukawil
        hello? i have a question regarding "checkout" on my website
      • mpen
        OK, I see I can get the supported_payment_currencies via a country code https://stripe.com/docs/api#retrieve_country_spec. I suppose I have to get their country via https://stripe.com/docs/api#retrieve_account
      • narent joined the channel
      • Shilon joined the channel
      • mattwc
        pjukawil: just ask
      • simomed: what's up?
      • narent
        Hi, I'm setting Stripe for the first time in our product. I'm following the instructions here: https://support.stripe.com/questions/can-i-save...
      • mattwc
        ile: you'd sign them up for a $0 plan, and each month you'd get a webhook telling you an invoice was created and you can update the invoice with their usage by creating an invoice item
      • narent
        but when I create a charge later, I get " No such customer:" error
      • Any one has any idea why I would get this error
      • mattwc
        narent: what is the full error message?
      • narent
        This is from my python client:
      • stripe.error.InvalidRequestError: Request req_A1SoE4isoPLxxx: No such customer: cus_A1Sma6pXKOexxx
      • This is in the test env btw
      • simomed
        mattwc: I installed the official woocommerce stripe plugin, all payment are declined, even I use my own card, (live mode=On), the logs shows this error : Error: Please enter your card details to make a payment. Developers: Please make sure that you are including jQuery and there are no JavaScript errors on the page.
      • pjukawil
        when i ran the checkout on my webpage, this is the error i received "InvalidArgumentInvalid argument.POST object expects Content-Type multipart/form-data
      • what does that mean?
      • mattwc
        and you're sure that customer exists in your stripe account? eg https://dashboard.stripe.com/test/customers/cus... exists?
      • simomed
        mattwc: js console don't show any js error
      • mattwc
        simomed: do you have a link to your checkout page?
      • simomed
        mattwc: will send you in private
      • mattwc
        pjukawil: are you using the Stripe python library or just calling the stripe api directly?
      • pjukawil
        all i did was copy pasted the code into my wix page using their embedding tool...
      • mattwc
        pjukawil: wix doesn't support server-side code, so you can't just copy and paste Stripe checkout to wix
      • pjukawil
        everything performed properly, entered information, received the text message, but then i received that error msg on my page
      • simomed
        mattwc: checkout url sent
      • pjukawil
        is there another way of doing this? do i need to switch to a service that does? and if so, do you recommend one?
      • ile
        mattwc: thanks, will try.
      • mattwc
        pjukawil: stripe requires server-side code which is beyond just the copying and pasting, a tool like https://commencepayments.com (I built it) would support just the html copy paste
      • simomed: looking
      • alexgordon has quit
      • pjukawil
        does squarespace support server-side code? or wordpress?
      • alexgordon joined the channel
      • mattwc
        pjukawil: wordpress you'd use a stripe plugin, squarespace and wix you'd need to use their ecommerce offerings
      • pjukawil
        so i am better off going with wordpress?
      • ile has quit
      • i knew i should have used them to begin with!
      • thank you!
      • i was able to connect a wix store to stripe but it is only set up to sell "products" not services
      • mattwc
        personally I have mixed feelings about wordpress, but it is more customizeable
      • isn't a product essentially a service
      • pjukawil
        oh yeah? which one do you recommend?
      • ta joined the channel
      • mattwc
        woocommerce and woocommerce's stripe plugin are what most people use
      • pjukawil
        you would think it would be that easy but it's not...i tried believe me but they dont let you completely customize what you are selling...so things like "shipping" etc are on the form
      • okay thank you!
      • adear11 joined the channel
      • adear11
        Need a bit of help. Trying to create an order using the PHP SDK for an item that is NOT shippable. However, I'm getting an exception that says: "Shipping calculation failed: For an Address to be used for a QUOTE, at least a country must be provided."
      • Why do I need to provide a shipping address on a non-shippable product?
      • jon_x112 has quit
      • Quang joined the channel
      • Quang
        Hey any devs online?
      • mattwc
        adear11: I'd email support about that, personally i avoid the orders api since its really for a specific use case of third party stores selling your products, not really selling your own products
      • Quang: what's up?
      • Quang
        How do i create a plan in a managed account under my parent account?
      • Says
      • mattwc
        Quang: stripe.com/docs/connect/authentication with the create plan api
      • Quang
        "But as with creating charges directly on a connected account, you can create a customer and a subscription in a connected account using a token created with either the platform’s or the connected account’s publishable key."
      • Ohh. Great Thanks.
      • adear11
        mattwc: so, I should just be creating charges, but not linking them to Orders/Products in Stripe?
      • Quang
        That answers my question well.
      • Thank you so much :)
      • mattwc
        adear11: thats what I recommend
      • adear11
        k. thanks.
      • pjukawil has quit
      • Quang
        @mattwc So if i have a customer in my parent account and what to create a subscription with that customer will not be possible. Is there a way i can create a new user with those values without the customer putting details again>
      • ?*
      • what= want*
      • mattwc
      • Quang
        Awesome. Let me read that
      • eacameron has quit
      • jon_x112 joined the channel
      • simomed has quit
      • gitgud joined the channel
      • alexgordon has quit
      • eacameron joined the channel
      • DrNo has quit
      • narent
        mattwc: sorry, had to step away. Yes I'm able to see my customer page
      • frankdrey joined the channel
      • mattwc
        narent: you're not using stripe connect right?
      • narent
        In fact I'm able to charge the customer immediately after the create operation. but if I store the customer id and try again later, that is when I get this error
      • No I'm nt
      • not
      • adear11 has quit
      • mattwc
        So I'm guessing when you try to charge them later you're using a different api key
      • narent
        I
      • I'm setting "stripe.api_key" before invoking the charge.create. I'm pretty sure this is the right key. it starts with "sk_test_"
      • gambatte joined the channel
      • mattwc
        Its the same one as the one you used to create it though? It sounds like they're different
      • tr12 joined the channel
      • gingerale has quit
      • narent
        yeah, i think so. okay, I'll double check things one more time
      • forgotmynick has quit
      • Quang
        @mattwc Also if i want to get a cut from connected account as service fee when "Automatic transfers enabled". How can i do that?
      • tr12
        narent: what's the full customer ID? I assume cus_A1Sma6pXKOexxx has been redacted
      • eacameron has quit
      • mattwc
        Quang: just collect an application fee by setting application_fee_percent when you create the subscription
      • Quang
        No. So according to our pricing model me charge X% to Customer and Y% to Connected account customer.
      • I want to cut Y in automatic transfers.
      • mattwc
        Quang: you don't take a cut from their transfers, rather you'd just take a cut of all the payments to them
      • Gsham joined the channel
      • narent
        Okay, I double checked. I created a new customer (in my test account) cus_A1U6jmnvmHzNzf. I can see this user in the web admin but when I go to charge this customer id, I get the same error.
      • mattwc
        narent: so if you charge the customer in the same file that created it it succeeds but in a different file you get a no such customer error?
      • narent
        Correct. I'm charging with a different script. That is when i get the error
      • this is my call to create charge:
      • stripe.Charge.create(amount=billing.dollars_due * 100, currency="usd", customer=user.stripe_id)
      • do i need to pass anything else?
      • mattwc
        you don't, tr12 do you see the charge request for that customer?
      • Quang has quit
      • narent
        you should see 1$ i charged in the same flow when I created the charge