#smoke
1 messages · Page 1 of 1 (latest)
hi! hmm, good point, that looks like a mistake in the go library
there's a way to pass the param directly though, one sec while I find it
thanks that would be great, i saw the Params field
but it also seems like i was rely on go modules to import the correct library version, which in my case seems stuck at v70.15.0+incompatible
but checking the readme for the repo it seems that now we are to import with a /v74 suffix
and that code has the Discounts field
ah but upgrading to that seems to beak my webhook event handler 😄
well the library is pinned to API versions so upgrading to a new major can cause webhook issues since it can only deserilaize events sent in the version its' pinned to
params.AddExtra("discounts[][coupon]", "<coupon_id>" is how you can add something to the CheckoutSessionParams instance object anyway for things not supported in the library