#jmak-customer-expansion
1 messages · Page 1 of 1 (latest)
ahhhhh
so the trick is every time it needs to be expanded i need to specify directly
yes
im a bit confused on how to do it for subscriptions
I have this code
err := json.Unmarshal(event.Data.Raw, &s)
if err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": "Error parsing webhook JSON"})
return
}
params := &stripe.SubscriptionParams{}
params.AddExpand("customer")``` but how do i make the final subscription result with the expanded params?
the first part looks like a JSON deserializer
really Expand works when you make an api request. So call https://stripe.com/docs/api/subscriptions/retrieve to retrieve that Subscription and expand its Customer at the same time
got it
is there a v74 for sub?
it seems to install v70.15+
getting this: go: module github.com/stripe/stripe-go/v74@upgrade found (v74.11.0), but does not contain package github.com/stripe/stripe-go/v74/sub
@white agate anything else I can help with?