#stripe

/

      • emillysgaardhans has quit
      • kaspertidemann has quit
      • emillysgaardhans joined the channel
      • emillysgaardhans has quit
      • emillysgaardhans joined the channel
      • emillysgaardhans has quit
      • drale2k joined the channel
      • g3funk has quit
      • g3funk joined the channel
      • ninjaparade joined the channel
      • jarrod_ joined the channel
      • brettporter joined the channel
      • Dededede4 has quit
      • boucher joined the channel
      • brettporter has quit
      • trock joined the channel
      • wesleyss joined the channel
      • trock has quit
      • emillysgaardhans joined the channel
      • eric___ joined the channel
      • eric___ has quit
      • eric___ joined the channel
      • eric___
        say hi
      • hi
      • eric___ has quit
      • markin
        ericjung_: hi
      • rrrk joined the channel
      • rrrk
        can someone give me some help with the api
      • boucher has quit
      • ericjung_
        markin: hello
      • markin: sup?
      • markin
        rrrk: Hi
      • ericjung_
        hehe
      • markin
        ericjung_: ah sorry wrong eric
      • ericjung_
        wrong eric
      • no prob
      • rrrk
        is there a way to find charges based on description?
      • ericjung_
        TooManyErics
      • markin
        rrrk: nope
      • you can list all charges based on a customer or get from a customer
      • ericjung_
        and then search each for the description you desire
      • (in your own code)
      • rrrk
        but theres a 100 list limit
      • ericjung_
        nah
      • that's just the page limit
      • 100 charges per http request
      • so 2nd request can go from 101-200
      • wsmoak
        hi wesleyss
      • rdymac has quit
      • rrrk
        so keep going until I don't get 100 items?
      • ericjung_
        no, there's a hasMore property/attribute
      • in each response
      • rrrk
        kk makes sense
      • thanks
      • jarrod_ has quit
      • rrrk has quit
      • nemothekid joined the channel
      • wesleyss has quit
      • Luke joined the channel
      • boucher joined the channel
      • kaspergrubbe has quit
      • Luke has quit
      • kaspergrubbe joined the channel
      • SFeser joined the channel
      • nemothekid has quit
      • nemothekid joined the channel
      • brettporter joined the channel
      • brettporter has quit
      • brettporter joined the channel
      • nemothekid has quit
      • brettporter has quit
      • boucher has quit
      • brettporter joined the channel
      • max-b joined the channel
      • nemothekid joined the channel
      • Taftse|Mac has quit
      • sirrrrrz joined the channel
      • sirrrrrz
        Q: what information must users provide when they join/register for a subscription?
      • Q2: is a billing address ever required by Stripe for regular checkout, or subscriptions?
      • mbu joined the channel
      • loglaunch has quit
      • henriwatson
        sirrrrrz: Heya.
      • Q1: Just the information that's required to run a credit card (card number and expiration date)
      • Q2: Stripe do not require a billing address for either. The issuing bank might before they approve the transaction, however.
      • wesleyss joined the channel
      • sirrrrrz
        henriwatson: thank you.
      • if required by bank, how to provide this information? we need to include this question in our form?
      • brazenhullabaloo has quit
      • wesleyss
        Hi wsmoak, I'm back! I've reuploaded the code to Github and have confirmed that the problem with my system is that the PHP isn't catching any of the $_POST variables
      • sirrrrrz
        Q3: when does a user's credit card get charged? I'm a bit confused by the transfers API.
      • henriwatson
        sirrrrrz: Charged when?
      • For a subscription?
      • jarrod_ joined the channel
      • sirrrrrz
        For checkout, when is it charged (is it at the time the transaction takes place)? For subscription, when is it charged (is this at our discretion)?
      • boucher joined the channel
      • Q4: Re: transaction fees (that we are charging), we can charge a fee as a % for subscriptions, but only in CENTS for one off transactions via the checkout. Is this correct? In the case of a % fee on a subscription, does STRIPE calculate that, or do we have to do that ourselves?
      • Taftse|Mac joined the channel
      • wsmoak
        sirrrrrz: if you specify a percentage for the application_fee on a subscription, stripe will calculate the amount.
      • henriwatson
        sirrrrrz: Your understanding is correct. For subscriptions you pass a percent, for one-off charges you pass an amount in cents.
      • Mind that adding an application fee will not modify the amount charged to the card.
      • max-b has quit
      • sirrrrrz
        Got it. For fees on regular checkout (non-subscription), is it trivial to pass a % to the application_fee parameter in cents?
      • e.g. application_fee = charge_amount*0.05
      • in other words, although we have to charge the fee in cents, can we effectively make it a % of the amount?
      • henriwatson
        That's basically what you'd do, yeah.
      • Just make sure you round off the application_fee.
      • wsmoak
        wesleyss: how does name="donate-form[amount]" in the form turn into 'amount' => $_POST[amount],
      • and wouldn’t that need quotes $_POST[‘amount’] ? (for example you have $_POST[‘desc’] with quotes)
      • wesleyss
        Thanks, I didn't catch that. That is from an old system.
      • wsmoak
        (also, it’s going to be $_POST[‘emailAddress’] coming from Checkout)
      • max-b joined the channel
      • relisys- joined the channel
      • relisys-
        if I setup a subscription with a trial period, shouldn't I get a webhook callback after the trial period expires saying that the customer was charged? And if so, any idea what webhook that would be?
      • grouchypenguin joined the channel
      • wsmoak
        relisys-: you should get one three days before the trial expires and then… *looks for zrail’s cheat sheet*
      • awfy joined the channel
      • zrail
      • sirrrrrz
        Say we have a subscription of X dollars per month. Can we choose which connected users receive that money? And also choose how it is divided between them? For example, we receive $100 per month from a user, and WE decide to allocate it between A, B and C (connected accounts) in the following ratio 20% 30% 50%. Is this okay?
      • henriwatson
        sirrrrrz: You can't transfer money to a connected account, so, no.
      • Taftse|Mac has quit
      • sirrrrrz
        Okay. Say we have a subscription (X) that is $100 per month. And it consists of us choosing 3 products from different suppliers (X, Y, Z). How could we implement that? Can we change the products month to month? Or the cost of each product?
      • wesleyss
        For some reason this " 'email' => $_POST['emailAddress']," is coming up null in my $customer array?
      • in Stripe Checkout
      • dmj` joined the channel
      • drale2k has quit
      • sirrrrrz
        Q:- Can users in countries that are in open beta with Stripe create accounts and receive funds via Stripe Connect?
      • webdestroya joined the channel
      • max-b has quit
      • wsmoak
        wesleyss: that should be in the top-level POST along with stripeToken — the Checkout script inserts it.
      • max-b joined the channel
      • wesleyss: I see you doing 'email' => $_POST['email'], on line 52 (but maybe you haven’t checked in changes)
      • there’s the simplest possible example for checkout: https://github.com/wsmoak/stripe/blob/master/ph...
      • sirrrrrz: to “pay” a connected account you have to make a charge. So your 3 products from different suppliers (or splitting the subscription) would mean the customer sees three charges. probably not what you want.
      • wesleyss
        I just moved it to line 15 right below the definiton of the $token variable and it is still returning null
      • wsmoak
        wesleyss: sorry about that. it’s $email = $_POST['stripeEmail'];
      • I probably looked at one of my custom forms that had emailAddress. :/
      • markin
        so many missed chats had my client on the wrong room
      • wesleyss
        No problem, but it still isn't working
      • Still returning "null"
      • wsmoak
        wesleyss: what about the token? I don’t think you can get through Checkout without an email address…
      • emillysgaardhans has quit
      • wesleyss: I think you need to do the same thing as on line 8 of the javascript file
      • sirrrrrz
        Q: for an account that receives $ via Stripe connect, what shows on their bank statement when they withdraw?
      • wsmoak
        I can’t match this up with any of my examples. Checkout is supposed to insert those two fields (stripeToken and stripeEmail) into your form, then you see them in the POST when the forms submits.
      • But you’re taking the form, inserting the stripeToken, and then form.ajaxSubmit(…)’ing it.
      • so… if ‘manually’ inserting stripeToken on line 8 of https://github.com/Lawdawg/Test/blob/master/js/... is working
      • then try doing the same thing with stripeEmail