#stripe

/

      • nexie has quit
      • karllekko
        lrotherfield: 0019 and 4954 are both highest risk, and normally charges with the highest risk level will always be blocked. The 4954 card is just special though, you're right. It's to help simulate would hypothetically happen if you had disabled that default rule. It's admittedly confusing.
      • lrotherfield
        Great thanks, I understand now.
      • karllekko
        joeearly: it looks like you could just move the event listener function at the bottom up into the document.ready function and that would fix the issue
      • joeearly: hmm, you could try adding a unique per-modal ID to each `iban-element` DOM element, does that make sense? But I see your issue alright.
      • koopajah joined the channel
      • joeearly: like, when the modal opens, you can create a new DOM element with a unique ID, and the mount the IBAN element to that. It does add some more complexity though.
      • diegoaguilar joined the channel
      • diegoaguilar
        Hello, for a monthly subsciption which let's say has right now (before new invoice) has current_period_start )A) = 1000 and current_period_end (B) = current_period_start + (30 days more converted in seconds)
      • An invoice.payment_succeeded will have the new dates current_period_start = B and current_period_end = B + (30 days more converted in seconds)
      • is my assumption correct?
      • koopajah
        diegoaguilar : yep!
      • diegoaguilar
        thanks koopajah
      • I'm writing a bunch of Stripe integration functional tests
      • you think there's a chance I share with someone from dev team?
      • I look for feedback and prob at the end, just sharing
      • koopajah
        sure you can always ask us for feedback
      • jaraco_ has quit
      • jaraco_ joined the channel
      • jaraco_ has left the channel
      • nexie joined the channel
      • that name is note banned so not sure what he meant
      • not*
      • jaraco joined the channel
      • jaraco
        Nevermind - seems to have resolved.
      • koopajah
        yes I double checked you were not banned
      • jaraco
        Must have been a bug with my client.
      • nexie has quit
      • nexie joined the channel
      • isia joined the channel
      • nexie has quit
      • bimawa1 joined the channel
      • nexie joined the channel
      • nexie has quit
      • nexie joined the channel
      • Guest10438 has quit
      • Xionkana joined the channel
      • bimawa1 has quit
      • Guest25520 has quit
      • Ishaq joined the channel
      • bimawa1 joined the channel
      • bimawa1 has quit
      • ta has quit
      • maartenvanvliet has quit
      • maartenvanvliet joined the channel
      • njbair joined the channel
      • bimawa1 joined the channel
      • Jordan joined the channel
      • Jordan is now known as Guest76605
      • maartenvanvliet has quit
      • forgotmynick joined the channel
      • njbair has quit
      • abenrob joined the channel
      • njbair joined the channel
      • isia has quit
      • rajesh joined the channel
      • koopajah
        abenrob not possible no
      • isia joined the channel
      • bimawa1 has quit
      • abenrob has quit
      • sandstro_ joined the channel
      • orbyt_ joined the channel
      • maartenvanvliet joined the channel
      • njbair joined the channel
      • sandstrom joined the channel
      • sandstro_ has quit
      • Zeynep_ joined the channel
      • Zeynep_ has quit
      • forgotmynick has quit
      • forgotmynick joined the channel
      • njbair joined the channel
      • aguilbau joined the channel
      • aguilbau
        hello, is there a way to make sure that multiple transfers will be made separately, even if they occur at the same time, and to the same account ?
      • jas joined the channel
      • jas is now known as Guest99270
      • koopajah
        aguilbau : not sure what you mean. If you create 3 transfers, they will all be separate
      • Guest99270 : that means their last invoice was not paid
      • aguilbau
        what i mean is that they will recieve it in one time, on their bank account
      • and that's the behaviour i would like to change
      • koopajah
        aguilbau : Transfers are not sent to a bank account, they are sent to the balance of a connected account. Payouts are what are sent to a connected account's bank account
      • Guest99270 : you just ignore it and start a new subscription, it will just work.
      • aguilbau
        oh ok, so then that's probably where my problem lies. thanks !
      • koopajah
        Guest99270 : the fact that it has `delinquent: true`. It does not matter at all to a new subscription
      • aguilbau
        so to achieve my result, I should initiate a payout on each transfer, right ?
      • Xionkana joined the channel
      • Xionkana joined the channel
      • amber has quit
      • koopajah
        Guest99270 : when you try to create a subscription it should tell you exactly why it does not work
      • aguilbau : yes
      • ricebear joined the channel
      • bimawa1 joined the channel
      • Larrik joined the channel
      • what's the invoice id?
      • Okay so if you look at the invoice it tells you exactly what happened.
      • you switched plans at a time where the coupon was not active anymore. So they had paid less than the original plan amount
      • so it's kind of expected behaviour in that case
      • so they got the credit for the used time (with the coupon) and then they owed you for the remaining time at the new price point (without the coupon)
      • if you wanted to change the plan without having them start paying more, you needed to disable proration on the upgrade. If you wanted them to start paying more though that's what we calculated. The discrepancy/what confuses is because the proration happened when the coupon was not applied anymore
      • Sure but when we *prorate* we use what they *paid* (coupon included) not what "they would have paid without the coupon"
      • you did not since there are 2 pending invoice items because of that change
      • https://dashboard.stripe.com/logs/req_yiAGiZVqO... that's the upgrade request and you see `prorate` is not there
      • ricebear : the funds should become available immediately. Are you sure this account did not have a negative balance at the time? Did you check what their balance was before and after the transfer?
      • maartenvanvliet has quit
      • ricebear : sure but taht's *now*. Was that the case when those errors happened yesterday?
      • Larrik : sure1
      • sure*
      • nratter joined the channel
      • nratter
        If I use a saved card on a Customer for a Charge, delete the card from the Customer (or change the default card), and then refund the Charge, will the refund always go back to the original card that was charged?
      • isia has quit
      • koopajah
        nratter : yes
      • nratter
        thank you...
      • one other question... is there any advantages to detaching a card vs deleting a card from a customer object? I see you can do both.
      • koopajah
        nratter : detaching is for *Sources* and deleting is for *Cards*
      • nratter
        but aren't cards added in sources?
      • koopajah
        Larrik : yes you would call https://stripe.com/docs/api#delete_invoiceitem for each pending invoice item (or do it in the dashboard). And because what if you upgrade the plan 10 times a day? That would be painful to have 10 charges a day. So by default we calculate proration. https://stripe.com/docs/billing/subscriptions/p... covers this in more details
      • nratter : not really, Card objects and Source objects are entirely different
      • nratter
        ok i'll look more through the docs. thanks again.
      • koopajah
        ricebear : I'm just asking. Unfortunately it's not really something I can debug here, you'll have to write in in that case
      • no I don't have a suggestion I'm sorry. Someone would need to investigate the exact balance on those accounts. I would recommend sending detailed information to our support team about each case
      • Guest76605 : yes it works with invoices too
      • nexie has quit
      • nexie joined the channel
      • mlissner joined the channel
      • nexie has quit
      • orbyt_ has quit
      • nratter has quit
      • nexie joined the channel
      • ta joined the channel
      • maartenvanvliet joined the channel
      • PederJ joined the channel
      • Larrik has quit
      • ricebear has quit
      • sandstrom has quit
      • ta has quit
      • nexie has quit
      • orbyt_ joined the channel
      • Xionkana has quit
      • Cook879 has quit
      • Cook879 joined the channel
      • Cook879 has quit
      • Cook879 joined the channel
      • Xionkana joined the channel
      • aguilbau has quit
      • isia joined the channel
      • mlissner has quit
      • Cesar_ joined the channel
      • Cesar_ is now known as Guest48106
      • OwenLars
        What's your question?
      • Guest75744 has quit
      • I don't think that's explicitly available in the API