#stripe

/

      • sheena joined the channel
      • riskish joined the channel
      • hmmok joined the channel
      • hmmok
        hmm I had it working before but now I have the same issue again, javascript is not triggering when I click the button on my custom form.
      • it's been a while)
      • I remember it was an easy fix though
      • I got jquery, stripe v2, public key, private key from config file, and the custom form's been untouched since the it-works threshold
      • computer and browser is fine with javascript
      • jayeb
        hmmok, what happens when you click the submit button on your form?
      • nothing at all happens, or just not what you expect?
      • hmmok
        I reload the page just as I set the form to do so my php backend can run and continue the checkout process
      • fuhry has quit
      • action="page.php"
      • jayeb
        ah
      • and what's the JS that you're trying to run when the form is submitted?
      • hmmok
        but the javascript should trigger before that to do its magic with the form inputs
      • jayeb
        is the JS somewhere i can take a peek?
      • hmmok
        a custom js file using jquery to $("#payment-form").submit(function(event) {
      • I remember there was a code paste bucket link someone recommended when I was here last
      • I can paste it there and link it
      • jayeb
      • or codepen.io
      • so many options!
      • also, feel free to PM me if you want
      • this channel is logged
      • hmmok
      • I've had no trouble with that code from a tutorial
      • I reckon it's something I changed in the php/html file
      • I change one thing to make the whole package more installable and this happs haha a fix turns into two bugs
      • riskish has quit
      • jayeb
        haha, argh
      • code, amiright
      • hmmok
        ill link to the php/html file, since that's probably the root of the problem
      • jayeb
        yea, everything in the JS looks solid
      • hmmok
      • awfy has quit
      • on that php/html the form has been untouched, so it's most likely fine, and the payinfo.php function is triggering so the form submit process is happening, just something with the javascript it seems, either not triggering or not having a dependency i figure
      • thomasgriffin joined the channel
      • I clearly remember that when I click the button the page kinda stops and doesn't let the button "unpress" while the js runs, but now it does unpress and just goes to the php immediately
      • jayeb
        ah
      • hmmok
        I hope that's an ah of I know what's to be done heh
      • boucher joined the channel
      • jayeb
        not yet
      • hmmok_ joined the channel
      • hmmok_
        hmm a hassly dc
      • jayeb
        can i see this live somewhere, hmmok?
      • or are you just running it locally?
      • hmmok_
        umm sure I'll pm you
      • jayeb
        thanks
      • hmmok has quit
      • hmmok_
        umm how does one... pm?
      • jayeb
        i just sent you one
      • sheena has quit
      • awfy joined the channel
      • beeker1121 joined the channel
      • Anonymous_ has quit
      • beeker1121
        hi again, another question - which event would i want to listen for via webhooks for when a customer becomes deliquent in payment, i.e. all retries to renew their monthly subscription fail and their subscription is finally canceled
      • jamez14 has quit
      • begizi joined the channel
      • levinunnink joined the channel
      • mbu
        customer.subscription.deleted beeker1121
      • beeker1121
        ok ty, and say a customer ends their subscription in the middle of the month with at_period_end set to true, will the customer.subscription.deleted event be called twice, 1. when the customer first ends it (status will be active still though), and 2. when it finally cancels (status will be canceled), is this correct?
      • cwu has quit
      • mbu
        beeker1121: there will be a customer.subscription.updated, for the at_period_end, then a deleted at the end
      • beeker1121
        you sir are a gentleman and a scholar
      • thanks! :)
      • beeker1121 has quit
      • jonathanchu
        does the Stripe API not support updating an existing plan's "trial_period_days" ?
      • zrail
        mbu :D
      • mbu
        jonathanchu: seems like we should, sec
      • jonathanchu
        mbu thanks for looking into!
      • mbu
        jonathanchu: you can update the trial_end
      • on the subscription
      • harbhub
      • you guys are worth over a billion dollars!?!?!?!?
      • jonathanchu
        mbu thanks! hm ok, so if we want to change the trial_period_days, we'd have to create a new plan then?
      • sheena joined the channel
      • nathancahill
        Is there a way to cancel a Stripe subscription if a website using Stripe does not provide a method?
      • mbu
        jonathanchu: yep
      • nathancahill: hmm, are you a customer?
      • jonathanchu
        thanks mbu!
      • nathancahill
        Yes
      • timtch
        [redacted]
      • [redacted]
      • [redacted]
      • mbu
        have an IBAN?
      • timtch
        [redacted]
      • [redacted]
      • mbu
        [redacted]
      • not the bank
      • you should be fine
      • tjhanley has quit
      • levinunnink has quit
      • timtch
        [redacted]
      • [redacted]
      • ksheurs joined the channel
      • Davey has quit
      • hmmok_ has quit
      • jonathanchu
        this is a question i asked earlier today in IRC - if you have a subscription that is prorated, a customer buys it and then cancels a day later - the invoice item is deleted along with the subscription. shouldn't *some* money be invoiced for that day of use? or is this not-by-design for Stripe?
      • Davey joined the channel
      • mbu
        hmm jonathanchu are you actually observing this?
      • we charge for the subscription up front and prorating it would mean that we credit the remaining *unused* days to the customer
      • hadees
        does stripe.js create the token with out verifying the credit card is good?
      • is that why when I use the failure test numbers it gives me a token?
      • jonathanchu
        mbu yes, seeing this behavior currently. we sign up, change quantities of subscription plan, and see the pending invoice. on subscription cancelation, those pending invoices are deleted and we technically have no payments.
      • mbu
        oh are you talking about invoice items?
      • zrail
        hadees: yes
      • hadees
        zrail: is that in the docs somewhere, it was very confusing to figure that out
      • zrail
        hadees: on production you'll notice if you try to use the test numbers it'll fail immediately
      • it *should* anyway
      • i don't know if it's spelled out in the docs
      • wjoe
        I'm going crazy trying to get Stripe to work in IE (8 and 9, though I think someone reported the same problem with 10). I asked in here yesterday and someone said it's like a problem with my JS, but now I'm testing with the simple checkout.js code copied directly from the docs, and I'm still getting the same problem. when I submit the card details, it just reloads the page with the token and other things in the URL
      • has anyone else experienced this? am I supposed to do something different for IE? can't see any mention of differences for it anywhere
      • harbhub
        wjoe, IE sucks
      • wjoe
        I know :/
      • harbhub
        just my two cents heh
      • wjoe
        all perfectly fine in firefox and chrome, and now I've spent a couple of days trying to fix this IE bug
      • cwu joined the channel
      • sadly the site has to work for non-techy people who are likely to be using IE, including old versions
      • gurumelo
        wjoe: url?
      • jonathanchu
        mbu yes invoice items are removed, so technically no payments will be made. is this correct - by-design?
      • mbu
        yep
      • invoice items are not prorated
      • jonathanchu
        ok, thank you mbu, appreciate the help
      • mbu
        sorry there's not a more satisfying answer :(
      • jonathanchu
        mbu yeah :) it's nothing to apologize about, though appreciated. i guess the issue is that if a customer cancels a few days before their billing period ends, there's no way to bill for "time used" - is that correct?
      • mbu
        if you're using invoice items instead of subscriptions themselves, yes
      • jonathanchu
        oh but we are using subscriptions, monthly billing - we're seeing that if a customer cancels a few days after they subscribe, we have no payments in the dashboard even though they technically used a few days worth of time.
      • wjoe
        gurumelo: https://chomonhouse.ssl-01.com/paypointpage.htm is the page I'm trying to get working (not my site, just hacking in the code), but even with nothing but a payment button at http://lc8n.com/chomonhouse/test2.html I get the same result
      • (Sorry for the slow response, on the phone with the person who's pestering me to get it working right now)
      • mbu
        hm, jonathanchu can you pm me your email?
      • subscriptions are pretty complicated and i'm not sure i'm understanding the situation completely
      • would be good to just go in and take al ooh :)
      • jonathanchu
        mbu will do, thanks!
      • CristianGiordano joined the channel
      • CristianGiordano has quit
      • boucher has quit
      • awfy has quit
      • awfy joined the channel
      • hadees has quit
      • ksheurs_ joined the channel
      • ksheurs has quit
      • begizi has quit
      • ametcalf has quit
      • Davey has quit
      • ametcalf joined the channel
      • soulseek1h has quit
      • Davey joined the channel
      • mbu has quit