#stripe

/

      • tim___
        Hey gang, if I add a `current_period_start` field upon creating a subscription, will the invoice payment webhook not be fired until that date?
      • or does it attempt to invoice the customer immediately?
      • Jon_ has quit
      • hpar
        AA: I don't understand what you're asking, what API call are you making. do you have the ID of a request from your logs? it's req_XXX in the URL when you're looking at your dashboard logs
      • tim___: you can't pass a current_period_start on subscription creation, it's not an option: https://stripe.com/docs/api/#create_subscription
      • tandersen has quit
      • I think what you'd want to do there is set a trial period, which does create an initial $0 invoice
      • AA
        oh sorry, for sure: request_id: req_WVtnlRUvEe8ADB
      • Nefarious
        '__stripe_sid', '__stripe_mid' and 'm' cookies, rather
      • hpar
        Nefarious: probably not required, but you may get blocked (as is a risk with any screen scraping tools)
      • Nefarious
        hpar: think the first two are just the session cookies so I'd imagine I'd be unlikely to be blocked omitting those? the 'm' one is the alleged fraud protection one though so I might reconsider that
      • Doginal has quit
      • jwerre has quit
      • hpar
        Nefarious: the only way to find out is to try it and see. again, keep in mind the less your tool acts like a real user agent, the more likely it is to get noticed
      • AA
        hpar: for sure: request_id: req_WVtnlRUvEe8ADB
      • hpar
        oh sorry AA, I was looking & got distracted
      • AA has quit
      • bshan joined the channel
      • AA joined the channel
      • AA
        woops looks like my machine went to sleep while I ran to the bathroom
      • hpar
        ah ok I see what's up AA
      • you did a request to /v1/customers/cus_xxxxx/cards/ which isn't an API endpoint
      • remove the trailing slash
      • tim___
        hpar: what would the best way to determine when the subscription should go live if I give a trial period until the desired date I want to start the subscription?
      • hpar
        trial_end is an exact timestamp down to the second
      • Stripe will process the subscription renewal then or sometime very soon after
      • milesmatthias joined the channel
      • milesmatthias
        question about disputes -- when viewing a dispute, there's a "Refund..." button, where you can issue a refund. Is this for the scenario where the customer should have requested a refund, but instead disputed the charge? So refunding here wouldn't incur a charge back or damage the account reputation?
      • hpar
        by the time it goes to dispute it's too late to refund: https://stripe.com/docs/disputes#responding-to-...
      • AA
        hpar: Looks like the card_id being passed in was nil causing the url to be built incorrectly. Thanks!
      • realisation joined the channel
      • milesmatthias
        hpar: so then why is there a "Refund..." button when viewing the dispute? That's really confusing.
      • Doginal joined the channel
      • hpar
        hm, not sure, I don't see that on disputes in my account. I see "email customer" "submit evidence" "accept dispute" and "add note"
      • milesmatthias
        hpar: I see "Refund..." instead of "Accept Dispute"
      • Doginal has quit
      • einnjo has quit
      • hpar
        huh, very strange. would you mind emailing in with some more details? https://support.stripe.com/email/login
      • milesmatthias
        hpar: sure
      • bshan has quit
      • milesmatthias has quit
      • realisation has quit
      • troglodytic joined the channel
      • troglodytic has quit
      • tim___
        "Stripe will process the subscription renewal then or sometime very soon after" What is the difference between this webhook, and the one that occurs when the user signs up initially for the subscription with the trial period?
      • hpar
        are you trying to tell which invoice is from the first charge and which is from the renewal?
      • on the first invoice period_start == period_end