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
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?