#Bans

1 messages ยท Page 1 of 1 (latest)

limpid loomBOT
hard parrot
#

Hello ๐Ÿ‘‹
My PHP skills aren't super great but let me take a swing

urban iris
#

It's okay hanzo ๐Ÿ˜„

hard parrot
#

I think you need an additional [ ]

#

like

    'coupon' => '{{COUPON_ID}}',
  ]],```
urban iris
#

This is my Reqeust payload:
{
"price": "price_1MRguZAVc0AdHeDfuKCxOpgT",
"discounts": {
"coupon": {
"0": "CdqQE4jL"
}
},
"customer": "cus_NEdJD6JONAOHib"
}

#

Thanks Hanzo!

urban iris
hard parrot
#

Great ๐Ÿ™‚ Glad I could help

urban iris
#

It's pretty weird, why is it formatted that way?

hard parrot
#

I think making it an array would allow us to support multiple coupons on a single invoice item (which as far as I know isn't currently possible)