#stripe

/

      • ywain
        hey irctc274, what's up?
      • stevhove joined the channel
      • irctc274
        I have a confusion
      • I have made transfer to connected account !
      • true Transfer schedule: Manual — 6 day rolling basis Fields needed: legal_entity.address.city, legal_entity.address.line1, legal_entity.address.postal_code, legal_entity.address.state, legal_entity.ssn_last_4
      • I have found this in detail 1
      • stevhove has quit
      • My question is Fields needed : << are they mandatory to proceed ?
      • To fill ab that fields
      • all*
      • gnoze5 joined the channel
      • ywain
        irctc274: the "fields needed" section tells you which information is required to verify the account. You will eventually have to provide all this information, yes. You can read more about this here: https://support.stripe.com/questions/What-is-th...
      • bee_keeper has quit
      • startupality has quit
      • ta joined the channel
      • stevenbristol joined the channel
      • stevenbristol
        When looking at an invoice with one invoiceitem that is for a subscription that is trialing, is there any way to determin that the subscription is actually trialing?
      • ta has quit
      • stripe296 joined the channel
      • This invoice is for a deleted customer, so there is no subscription object
      • stripe296 has quit
      • irctc999 joined the channel
      • irctc999
        I want to validate the card using stripe. Is there anyway to validate the card on stripe.
      • p15 has quit
      • p15x has quit
      • p15 joined the channel
      • sr2016_ joined the channel
      • anyone there for helping me?
      • nodebase has quit
      • ta joined the channel
      • zkirill has quit
      • fels has quit
      • stevenbristol
      • stevenbristol has left the channel
      • stevenbristol joined the channel
      • zkirill joined the channel
      • irctc999
        I want to validate card in c# using stripe
      • is there any method that validate the card number
      • nodebase joined the channel
      • stevenbristol
        irctc999: I don’t think there’s a way to do it other than javascript
      • siyfion joined the channel
      • zkirill has quit
      • ta has quit
      • irctc274 has quit
      • otiasogirdor joined the channel
      • irctc916 joined the channel
      • irctc916
        Hi can i get charge details based on subscriptionid
      • ywain
        hi irctc916. you'd need to retrieve all invoices for this customer, check if the invoice's `subscription` matches your subscription ID, then retrieve the charge via the invoice's `charge` attribute
      • mitchellvanw has quit
      • irctc916
        ymain:but the api returns invoices if i have incoive id only
      • ywain
        irctc916: you can use the "list all invoices" call with a `customer` parameter to retrieve all invoices for a given customer: https://stripe.com/docs/api#list_invoices
      • irctc916
        ymain:list all will give all the invoices genrated irrespective of customer etc
      • ywain
        irctc916: if you use the `customer` parameter, it will return the invoices for a specific customer
      • irctc916
        ywain:Thank you
      • ywain
        you're welcome :)
      • irctc916
        ywain:i want to pass data in meta_data for card when i am saving how can i do that
      • ywain
        on which object do you want to save the metadata? charge, invoice, customer?
      • birdy247
        what is the difference between account.updated and account.external.updated in connect account webhooks
      • irctc916
        charge
      • ywain:charge for now.is there a differnt procedure for saving in all these 3 places
      • ywain
        hi birdy247. account.updated is triggered when a property of the account object is changed (like `display_name` or `email`). account.external_account.updated is triggered when there's a change on an external account (i.e. bank account or debit card) associated to a Stripe account
      • birdy247
        ywain ok thanks
      • robcurry joined the channel
      • I am mainly interested in any webhooks which would prevent a charge from succeeding
      • robcurry
        hi. can anyone explain why sometimes a CVC is checked and other times it’s not?
      • birdy247
        so can I assume the 2 I need to watch for are account.updated and account.deauthorized
      • stevenbristol has quit
      • account.updated bing charges disabled
      • ywain
        irctc916: no, the procedure for updating and accessing metadata is the same for all objects: https://stripe.com/docs/api#metadata. I just wanted to point out that if you save metadata on the charge object, the metadata will only be on the charge and not on the invoice
      • hi robcurry. the short answer is "banks be crazy". Some banks require it, others don't. Some banks will accept a charge even if the CVC is wrong (which is why we have an option to decline those charges in place of the bank)
      • robcurry
        ok. im my instance im not charging the customer. we are adding them as a customer with a card and adding to a trialling subscription. im guessing it’s the same thing. adding a card to a customer - regardless of whether thereis a charge, would trigger a check if the bank required it
      • chridal has quit
      • ywain
        birdy247: that sounds correct. even if there's a problem with an external account, it shouldn't affect the ability to accept charges (only to get the funds afterwards)
      • springogeek joined the channel
      • chridal joined the channel
      • springogeek
        Hello all. If I wanted to have a user sign up to a monthly subscription service, but charge them upfront for.... say three months, before charging them monthly after that, is there an easy way to do that with Stripe, or would I need to do an initial charge and then schedule a job for 3 months later to subscribe them?
      • ywain
        hi springogeek
      • irctc916
        ywain:ok thank you
      • robcurry
        @springgogeek: you could create the customer, add a charge and then create the subscription on a monthly plan with a trial_end of 3 months time
      • so you would take payment, the subscription would be activated in 3 months time and charge on a monthly basis.
      • ywain
        springogeek: I think the best way to do that would be to: 1. create an invoice item for the 3 months payment then 2. create a subscription to the monthly plan with a 3 month trial
      • springogeek
        ahh, thank you both.
      • robcurry
        i guess the issue might be what you need to do within the initial 3 months as stripe wouldn’t initiate anything in terms of webhooks etc )as far as i know)
      • birdy247 has quit
      • springogeek
        that is an issue..
      • ywain
        well there would be a customer.subscription.created when you create the subscription with the trial period
      • then a customer.subscription.trial_will_end 3 days before the trial ends
      • springogeek
        but in the intermediate months before the trial ends
      • so at the end of month 1, for example
      • robcurry
        but if they need to ship a package each month during the 3 month trial, they would need to manually track that, surely?
      • ywain
        ah, right
      • rocco88 joined the channel
      • rocco88 has quit
      • rocco88 joined the channel
      • springogeek
        that isn't the most critical issue, but it forces me to change my implementation somewhat. I'm relying on the webhooks to update the 'last paid' record of the user, and then testing that time difference.
      • ywain
        yeah, you'd need to track that on your end. since nothing happens on Stripe's side, no event is sent
      • springogeek nods
      • robcurry
        ha, got to love workarounds :)
      • springogeek
        :)
      • I like it. Working with the stripe api presents all kinds of fun challenges. So much fun :)
      • ywain
        Haha, glad you're enjoying yourself :)
      • Going to grab lunch, back in a bit!
      • springogeek
        Enjoy!
      • mitchellvanw joined the channel
      • irctc916
        ywain:how can i pass metadata in stripe.js
      • springogeek
        doesn't stripe.js just verify card data? Why would you pass metadata to it?
      • Regarding invoices: Do you create invoice items before creating an invoice?
      • chridal has quit
      • p15 has quit
      • robcurry has quit
      • Zimdale joined the channel
      • ta joined the channel
      • ta has quit
      • ta joined the channel
      • gnoze5 has quit
      • p15x joined the channel
      • danahern joined the channel
      • SDr joined the channel
      • irctc434 joined the channel
      • irctc434
        Hello, is it possible to create a subscription without auto renewal
      • ywain
        Hi irctc434. Not sure I see the point of this -- wouldn't that just be a one-time charge?
      • irctc434
        The user can choose whether he want auto renewal or not
      • danahern has quit
      • springogeek
        irctc434: Why not do a subscription or a one-time-charge based on the users choice then?
      • Zimdale
        Wouldn't that be a one time charge OR a subscription?
      • ywain
        Well there is an undocumented `max_occurrences` parameter you can use when creating a subscription, to automatically stop the subscription after a set number of billing periods. I guess you could use `max_occurrences=1`... but I mean, in your code you'd have to have an "if" statement to handle the renewal vs. non-renewal case, you might as well create a simple charge for the non renewal case
      • irctc434
        ok thanks for the details
      • nodebase has quit
      • ywain
        np!
      • FriedEggWindbag joined the channel
      • irctc999 has quit
      • FriedEggWindbag
        Hey all - I have a couple of questions about Stripe Managed accounts. I've read the documentation and API reference but am not sure about a few things. First: Is there a limit to the number of Managed accounts that can be created on a given platform?
      • motorfirebox joined the channel
      • ywain
        hi FriedEggWindbag. Nope, there's no limit!
      • ash___ joined the channel
      • p15x has quit
      • ash___
        I was wondering if its possible to update a transaction, I want to add the customer and order ID
      • ywain
        Hi ash___. If the charge was created directly with a token, you can't change it to link it to a customer object afterwards. But you can always update the charge's description and metadata for your own use
      • chridal joined the channel
      • ash___
        I have ch_128nFpFn4SrB bla bla
      • I have
      • public function update_cc($order){ $result = \Stripe\Order::retrieve($order->result->id); $result->metadata["OrID"] = $order->id; $result->metadata["CuID"] = $order->info->CuID; $result->save(); }
      • ywain
        ash___: you should use gist.github.com or pastebin.com to share code, it's pretty hard to read code directly on IRC
      • FriedEggWindbag
        @ywain ok cool! The other question I had is around payments (re: Managed Accounts). In the API documentation it states "The entire amount of the charge will be immediately transferred to the destination account. The ID of the resulting transfer will be returned in the transfer field of the response.". Is it possible for the transfer to fail, and the platform be left with the balance of the original Charge in the platform acco
      • irctc434 has quit
      • chridal has quit
      • ash___
      • bogdanbigu joined the channel
      • motorfirebox
        I'm getting an issue with a form that contains more fields than just the Stripe inputs