#stripe

/

      • Chris_m
        For every language pythin Ruby java Node and Go your api doc here https://stripe.com/docs/api/python#account_object Lists the document field as a string
      • an ID
      • ldrivo
        pastebin/gist? i did not use it before, can u help me to use it?\
      • pastebin/gist? i did not use it before, can u help me to use it?
      • stpaulti_ joined the channel
      • tr12
        Chris_m: it's essentially a known docs bug, sorry
      • Chris_m
        ok , so does the account object legal entity docuement have 3 fields or is it a string?
      • tr12
        the go bindings define it as a struct of type IdentityDocument
      • brendon21c has quit
      • Chris_m
        I am unable to test this because there is no way to simulate a response from stripe
      • eric_lagergren joined the channel
      • tr12
        you should be able to do account.Get("acct_****") to get back an account object
      • Guest39588 has quit
      • (doing this in test mode, I mean)
      • Chris_m
        me?
      • tr12
        yes
      • Chris_m
        Sure, but its always null since stripe never asked me for a document and I cant simulate it
      • tr12
        you can provide a document when you create the account, eg:
      • Chris_m
        I am testing my webhook and the document field is always null
      • HilalRather
        is it possible to add multiple customers to a subscription
      • Chris_m
        ahh
      • So if I upload the test picture as a document
      • tr12
        yes
      • stpaultim has quit
      • that'll work
      • Chris_m
        ok thanks
      • ldrivo
      • tr12
        HilalRather: no - a subscription only bills a single customer
      • HilalRather
        ok
      • thanks.
      • tr12
        you'd need to make `n` subscriptions, one for each customer, and divvy up the total some how
      • stripe450 joined the channel
      • stripe132 joined the channel
      • stripe132
        hi
      • tr12
        stripe132: helol
      • *hello
      • HilalRather
        is it possible for multiple subscription only one invoice should be created by stripe and charge the amount of all subscriptions
      • tr12
        HilalRather: yup!
      • stripe132
        anyone from stripe support ?
      • HilalRather
        how
      • tr12
      • stripe132: o/
      • ldrivo
        hello
      • tr12
        ldrivo: I sent you a DM
      • HilalRather
        it is not possible Note that multiple subscriptions on a customer results in a separate billing cycle, invoice, and charge for each subscription, even if the plans have the same billing interval and the subscriptions are created at the same time.
      • stripe450
        my paymnets from stripes are not getting released
      • HilalRather
        I want there should only one invoice for multiple subscriptions
      • ldrivo
        DM?
      • tr12
        HilalRather: agh, sorry, I linked to the wrong docs: https://stripe.com/docs/subscriptions/multiplan
      • stripe450: support can help you with that support.stripe.com/email
      • stripe450
        no ine is replying to my emails even there
      • Chris_m
        @tr12 what is your best language?
      • HilalRather
        i Know this all .
      • stripe450
        can you please check it right now
      • Chris_m
        Java?
      • In the go Java Sdk the Document is a string
      • HilalRather
        I just want to know ,is it possible to add different interval plans in a single invoice
      • stripe450
        my release date keeps on changing to next day from a long time
      • tr12
        stripe450: if you give me your email in private (/q tr12 my email is ...), I'll let the team that handles those know
      • HilalRather: that's not possible
      • HilalRather
        that is what i want
      • tr12
        because the invoices would need to be created on different schedules
      • HilalRather
        yers that is ryt
      • Chris_m
      • tr12
        Chris_m: java just doesn't support expansion at all
      • err, rather stripe-java does not
      • Chris_m
        Sure, so its only go that can get the expanded object?
      • stripe450
        @tr12 its been more than a year now the payments are stuck my email address is RUPINDER.SINGH90@YAHOO.COM
      • tr12
        it's only java that can't
      • and .net, I guess
      • Chris_m
        thing is how does the stripe api know I am using go or java or whatever when it sends me a webhook?
      • tr12
        it doesn't
      • Chris_m
        lol
      • tr12
        the difference is in how the library parses the JSON response
      • HilalRather
        is it possible in stripe ,multiple subscriptions shoube be charged by multiple sources at different intervals
      • Chris_m
        so if you send me a JSON string with leglalEntity{ verification: string} how do I expand that
      • ?
      • stripe450
        @tr12 ? please try and reply here
      • skyloath joined the channel
      • HilalRather
        need answer
      • sljchauffeur has quit
      • Chris_m
        @tr12 The stripe webhook account.updated sends only a string for the document field, how do I expand that?
      • in JSON
      • HilalRather
        multiple subscriptions charged by different cards of single customer
      • tr12
        HilalRather: sorry, concretely, what's the behaviour that you want here?
      • HilalRather: ie: if I've got a subscription that bills every 6mo for $100, and a subscription that bills every 7 days for $5, what should happen?
      • stripe450: I'll pass that along
      • lenochka_ joined the channel
      • HilalRather
        My question is that if a customer is subscribed to 3 subscriptions say Monthly, Daily and Yearly, But i customer wants that each subscription amount should be deducted by 3 different cards of same customer. Is it possible in stripe?
      • tr12
        Chris_m: you can use json.Unmarshal, iiuc
      • Chris_m
        @tr12 but there is only a string
      • tr12
        HilalRather: that'll be 3 separate invoices, though, right?
      • Chris_m: you're deserializing an entire event, no?
      • Chris_m
        @tr12 I can't marshal a string into a struct with 3 fields
      • I deserialize the event fine
      • I can get every daya
      • stripe450
        i am seeing this msg from long time fighting for my money i want the reply today itself from support team
      • HilalRather
        but how is it possible
      • Chris_m
        but the document field in the legal entity object is returned as a String and the go interface is a struct with 3 fields
      • HilalRather
        while adding sources existing sources are replaced and there is always one default card
      • Chris_m
        @tr12 this is what stripes server sends me "verification":{"details":null,"details_code":null,"document":null,"status":"unverified"}
      • tr12
        HilalRather: you'd need to create 3 customers, one for each card
      • Chris_m
        document is a single field not a json object
      • lenochka_ has quit
      • HilalRather
        what the heck ,i am talking abt single customer....................
      • truepudding
        .net deals with expansions :)
      • HilalRather
        <@tr12>
      • <@tr12> :?
      • stripe132
        anyone from stripe support
      • ?
      • tr12
        Chris_m: ah - there's a custom UnmarshalJSON function that does this
      • stripe557 joined the channel
      • theomo joined the channel
      • Chris_m
        @tr12 Stripe is sending me a single key;pair not a json object so I cannot marshal this into a struct.
      • tr12
        Chris_m: ah - there's a custom UnmarshalJSON function that does this
      • theomo
        Cannot for the life of me get json_decode to read the JSON returned by stripe. Can anyone help?
      • tr12
      • Chris_m
        ahhhh
      • ye i saw that
      • stpaulti_ has quit
      • tr12
        HilalRather: stripe does not support a customer object with multiple subscriptions that bill from different cards
      • stripe450 has quit
      • you'd need to use multiple customers
      • stripe132
        @tr12 my payment is not releasing from last one year
      • do you guys want me to take a legal action
      • Chris_m
        @tr12 so I need to unmarshal the ID document separately? after I have already unmarshalled the account object
      • stripe132
        i tried to caontact you guys many times
      • on email on chat
      • ldrivo
        hello i sent you all code url
      • Chris_m
        @tr12 your actual go api doesnt make use of this custom unMarshall function at all
      • theomo
        Anyone know why json_decode won't decode valid JSON?
      • It just returns empty.
      • tr12
        ldrivo: you need to send the stripe_account param the second time too
      • stripe132: if you give me your email in private (/q tr12 my email is ...), I'll let the team that handles those know
      • ldrivo
        ok
      • tr12
        theomo: have you tried printing the json out to eyeball it?
      • Chris_m: no, that should work automatically
      • theomo
        Yes, it's not outputting anything!
      • stripe132
        @tr12 i can give u my trasition id
      • u have to check it right now
      • tr12
        theomo: how are you getting this json - from a webhook post?
      • theomo
        Yes. I've verified that the JSON is being received and is valid. I just can't decode it. No errors, just blank.
      • Chris_m
        @tr12 Ok i will try it
      • @tr12 thanks for the help
      • stripe132
        @tr12 can u check my stripe account right now
      • ?
      • @tr12 reply
      • Chris_m
        @stripe132 give the guy a break
      • tr12
        => DM