#VukasinJockovic-coupons

1 messages · Page 1 of 1 (latest)

flint escarp
#

hello! can you share the request id?

proud horizon
#

@flint escarp ufff...there's no request id cuz checkout session being created is failing on api call with Invalid array exception.

flint escarp
#

perhaps share the code snippet?

proud horizon
#

When I remove discounts property, it continues to checkout session correctly

#

The flow is:
Based on some condition, coupon code is generated with coupon creation api call (which works correctly and I can see it among coupons), and it's ID is taken and set inside discounts.coupon, AND allow_promotion_codes is unset from stripe params array.

ember grove
#

it should be discounts => [ [ coupon=> ".."] ]

#

it's an array of objects so it's two sets of [

proud horizon
#

arary of hashes

#

goddamit I knew it's something dumb

#

@ember grove @flint escarp fuck me, looks like I have to go to sleep 🤦‍♂️

#

thanks