#jmak-customer-expansion

1 messages · Page 1 of 1 (latest)

hot thunderBOT
obtuse void
#

jmak-customer-expansion

white agate
#

ahhhhh

#

so the trick is every time it needs to be expanded i need to specify directly

obtuse void
#

yes

white agate
#

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?
obtuse void
#

the first part looks like a JSON deserializer

white agate
#

got it

#

is there a v74 for sub?

#

it seems to install v70.15+

obtuse void
white agate
#

oh it got renamed to suvscription

#

subscription

obtuse void
#

@white agate anything else I can help with?

white agate
#

nope it worked

#

thank u ser