#stripe

/

      • abilicom joined the channel
      • Darmani
        probably.
      • dandu
        Is there a "right way" to ask a question, in here? Rules, or anything like that? Or do we just spit out questions, and pray someone who knows the answer also cares enough to help?
      • Darmani
        dandu: That's exactly what you do.
      • dandu
        :)
      • Darmani
        I mean you should probably look over the docs first.
      • nitmv joined the channel
      • nitmv
      • dandu
        So, my question is... I'm modeling my application where each user will have a subscription, and each user's subscription will vary. Is it considered bad form to make a subscription `plan` for each customer, when they register with our platform? If so, what is the preferred method? If it's not a problem to do it this way, is there any "best practice" in terms of making a plan that's $0 and/or using a
      • "trial_period_days" value in some way?
      • nitmv
        How to handle close button in stripe checkout.js
      • dandu
        The docs say that if you try to create a `customer` and assign them a `plan` and that plan doesn't have a positive "trial_period_days" value, the customer will need card information.
      • khan
        question: i have multiple businesses, can i create multiple business names accounts under a single stripe account, as all businesses belong to me.
      • mattwc
        khan: each business should be it's own account but they can share a login
      • khan: click your business name in the top right of the dashboard and then create account
      • irctc036: do you have a link to your checkout page?
      • TheAdversary joined the channel
      • khan has quit
      • dandu: you can make a new plan per custome
      • nitmv: how do you want to handle it? there is a closed callback you can listen for
      • dandu
        mattwc: Thank you!
      • irctc036
        its an app that allows online orders...when the user first signs up , the updated their credit card info at checkout..then it proceeds and places the order
      • dandu
        mattwc: So, is the 'right way' to do this, to create a plan for $0 and subscribe them to it? Or is it to create a plan, and wait until they enter credit card information into stripe, to actually connect `customer` and `plan`?
      • irctc036
        so the last step is checkout, if the user never used app before it asks for credit card info, once they click ok it places the order
      • mattwc
        dandu: either way works, making a new plan will make receipts a little nicer
      • nitmv
        if any user clicks on close button he has to navigate to another page on the app..i am sending a function to closed inside handler.open({}) but it is throwing an error
      • dandu
        mattwc: My concern is the `plan` parameter of the "Create a customer" documentation...
      • mattwc: `plan` - optional - The identifier of the plan to subscribe the customer to. ... If you subscribe a customer to a plan without a free trial, the customer must have a valid card as well.
      • mattwc
        nitmv: why does he have to naviate to another page? What is the error
      • dandu: that is correct, you'd need to wait for them to enter a cc
      • nitmv
        we have a projects page from which the user navigates to another page where stripe checkout is displayed. So if the user clicks on close button he has to navigate back to the projects page
      • mattwc
        nitmv: so what is the error in the closed function?
      • dandu
        mattwc: So then my workflow should be: 1. create a `customer`, without attaching a `plan`, when they register. 2. wait for the customer to decide to subscribe - at that point, create a `plan` and associate the `plan` with the `customer` via a `subscription`.
      • mattwc
        dandu: you could do that, or don't create the customer until they actually subscribe / enter their card info
      • nitmv
        the closed function is called when the user clicks on close button and also when the payment is completed. is there a way to handle them separately
      • eacameron joined the channel
      • mattwc
        the token function will always get called first, so you can set a global variable in your token function that your closed function can read
      • saurabhjha has quit
      • dandu
        mattwc: thanks!
      • eacameron has quit
      • irctc036
        Hi Mattwc...did you receive me last messages?
      • mattwc
        irctc036: yes but you didnt say what the problem is
      • irctc036
        our platform allows restaurants to accept online orders...once a user chooses items he is sent to checkout page. If its the users 1st order, at checkout page he enters credit card info..as soon as it is entered then the order is placed...... When a user places the first order it doesnt go through and no order is sent (but user assumes it is sent)..We dont receive this issue on ourstaging server w/ Test stripe account BUT it happens o
      • we cannt recreate this issue and it is a major problem for us
      • mattwc
        irctc036: what do you mean by it doesn't go through, is no token generated? do you have any logs that show anything, you can't recreate it in production?
      • irctc036
        it looks like it creates the users account on stripe but it doenst place the order on our platform
      • but with test stripe account this issue doesnt happen..it places order on our platform the first time
      • TuesdayNinja joined the channel
      • TuesdayNinja
        Any stripe devs here?
      • mattwc
        irctc036: do you see tokens being created in Stripe?
      • irctc036: if it doesn't send the order to you that sounds like an issue between your app and your production server
      • stripe732 joined the channel
      • irctc036
        it may as well be.. i dont understand why it works on test stripe account but not on live stripe account
      • mattwc
        irctc036: I'd have one of your devs do some debugging in live mode and figure out where its failing
      • stripe732
        Hi, can anybody help me integrate stripe into Wix; in order to create a subscription checkout button - perhaps through HTML? Thanks
      • mattwc
        without knowing what api call isn't working its a bit hard to figure out, but it does sound like you could use some better error handling
      • TuesdayNinja: you should just ask your question
      • irctc036
        It does create the customer and adds the credit card info
      • dandu has quit
      • yeah il get the devs to dig deeper into this, even tho theyve been saying they cant recreate the issue
      • mattwc
        stripe732: stripe checkout requires some server-side api code so you'd either need to use wix's ecommerce offering or a third party took like commence payments.com
      • irctc036: if its creating the customer that means its hitting your server. have you tested with 4000000000000341 in test mode?
      • TuesdayNinja
        Hey @mattwc – Question, we're trying to automate the oAuth flow for testing. We created test standalone accounts for our platform (via Connect) using the API to create the account. Once our tests are complete we would like to delete the test standalone account since it is no longer needed. Does Revoking access to these test standalone accounts delete them?
      • irctc036
        No...what is 400****341? when we do testing its off of 4242* (credit card)
      • mattwc
        irctc036: 4242 is for successful transactions, but not all transactions are successful, so theres a ton of cards to test for error cases
      • stripe732
        Thanks for the response Matt, but I have no idea what any of that meant, I'm not very literate when it comes to HTML or PHP
      • mattwc
        TuesdayNinja: I don't believe they do
      • irctc036
        can you please direct me to the page with the documentation on this?
      • mattwc
        stripe732: because of how wix works you can't just add your own server code like Stripe requires
      • stripe732: you'd need to use wix's offerings, or a third party tool
      • TuesdayNinja
        @mattwc is there any way to delete them? The "Delete an account" endpoint only works for managed accounts
      • stripe732
        I see, so would you have any idea which third party app I could use?
      • Cos I am certain that Wix doesn't offer subscription integration
      • mattwc
        TuesdayNinja: not programatically, you'd probably want to email support, there is probably a better way to handle testing it, like maybe stubbing and returning a prebuilt account
      • irctc036
        thnk you
      • mattwc
        stripe732: I built https://commencepayments.com for this use case, https://stripe.com/built-with may have some others
      • stripe732
        I understand, so I just copy and paste the code in to a HTML box?
      • mattwc
        stripe732: with commence yes
      • TuesdayNinja
        @mattwc thanks stubbing is probably a good idea
      • TuesdayNinja has quit
      • stripe732
        So I've entered the code but nothing is showing
      • mattwc
        if you save / preview the site it should show up
      • nitmv has quit
      • TheAdversary joined the channel
      • qar joined the channel
      • stripe732
        It's not showing up...
      • mattwc
        stripe732: one sec
      • Kowsalya joined the channel
      • stripe732: ah right, wix is weird, so the code you'd enter would be <p>Commence Code here</p>
      • need to wrap it in <p></p> basically
      • qar has quit
      • stripe732
        Thanks, I've got it in. So in regards to charging a subscription monthly recurring fee; is that possible?
      • mattwc
        stripe732: yeah, when you create your commence account there is a button builder that will ask you questions like do you want a one time charge, a subscription, how much do you want to charge etc, and at the end it gives you your code
      • Kowsalya
        at what scenario the status of payment[in charge object] will be pending or failed?
      • stripe732
        I see, thank-you very much! Last question: is there a way for me to remove the grey background?
      • mattwc
        Kowsalya: you only see pending for ACH, failed is only for declined charges
      • Kowsalya
        Ok thanks. But declined I am seeing before charge object created right?
      • mattwc
        Kowsalya: you'd see declined as a result of a charge being created
      • Kowsalya
        Is there is a way to test record status/failure_code/failure_message/fraud_details appropriately?
      • mattwc
        stripe732: I think if you just move the html box it'll turn white
      • Kowsalya
        could you please share some sample card numbers or example scenarios?
      • mattwc
      • TheAdversary has quit
      • nilsmunch joined the channel
      • stripe262 joined the channel
      • Kowsalya
        Thanks mattwc
      • stripe262
        quick question :)
      • mattwc
        stripe262: sure just ask
      • irctc036
        I have another question.our platform allows restaurants to accept online orders and all the restaurants are standalone stripe connect. A user placed an order at one of our restaurants .it created the customer on our host stripe account and the email address of that user. on restaurant stripe account , it charged the user succesfully but it didnt bring over the users email or it didnt create that user as a customer
      • why is that happening?
      • zamro joined the channel
      • mattwc
        irctc036: because thats how charging with destination works
      • stripe732
        Hi Matt, back again, the grey returns as soon as the Stripe form opens
      • It sort of ruins the house-style...
      • Is there a way around it?
      • irctc036
        Ok, how do we then send the customer the proper receipt?
      • stripe262
        I see from an ACH perspective, Stipe indicates that the customer has up to 90 days to initiate a refund request. Does credit cards have any time considerations as well? We are developing a white labelled solution, so wondering if we should disable the refund button after XX days.
      • *Stripe
      • irctc036
        bc the restaurant doesnt receive the email so they cannot send a receipt
      • mattwc
        stripe732: do you have a link so I can take a look?
      • irctc036
        email address*
      • mattwc
        irctc036: the receipt gets sent from your Stripe account, but personally it probably be better for you to have some custom thing you send the restaurant with the email and what the customer ordered and stuff
      • stripe262: chargebacks are commonly under 90 days but 180+ isn't unheard of
      • irctc036
        Why do you say that?
      • stripe262
        ok so best not to set a limitation on when they can refund
      • mattwc
        irctc036: well you need to give the restaurant some way of knowing what the customer bought right?
      • stripe262: yeah best not to
      • stripe262
        Thanks Matt!!!
      • irctc036
        oh ok.. that wont be a problem because the restaurant has a web based platform that they see the incoming orders
      • mattwc
        irctc036: so why not include the email in their web based platform?
      • irctc036
        The users are the restaurant customers..the restaurants customers go on our app to order from the restaurant...the email is meant to be sent to the restaurant customer (how much they spent on the order)
      • i may not have understood your question..sorry
      • mattwc
        irctc036: so whats the issue with the missing email?
      • stripe732
      • That's the link for it Matt
      • irctc036
        when a customer places an order, i dont know how to send a receipt to the customer since we are using destination
      • mattwc
        irctc036: the receipt would get sent from stripe from your account
      • irctc036
        there are no payments on my stripe account...the payments are on the restaurant stripe account..
      • on my stripe account i can see the customers but i cannot see the transactions
      • mattwc
        stripe732: ah that darkening on the screen is something from Stripe, not Commence, but what you can do is have commence open it in a new tab (since wix, locks us down to the size of the html box)
      • TheAdversary joined the channel
      • stripe732: for the open in a new tab, you'd add data-forcemobile="true" to your button code
      • irctc036: do you know if you're using shared customers and actually charging directly?
      • irctc036: I'd still recommend sending the email from your own application
      • and not using Stripe email receipts
      • DaKnOb has quit
      • stripe262 has quit
      • irctc036
        I dont know if we are using shared customers. How can I find out ?
      • mattwc
        irctc036: you should ask your developers