#Pdot-promotion-checkout

1 messages · Page 1 of 1 (latest)

timber wraith
jaunty sun
#

Do I have to pass the 'coupon': '{{COUPON_ID}}', inside discounts arry, or can I leave it blank

#

nvm just needed to read the docs lol

#

thanks for the link

timber wraith
#

Sure thing!

somber hazel
#

Isn't there a way to add promo codes not programmatically?

timber wraith
#

@somber hazel if you use Payment Links, you can do this without code, but using Checkout always requires code

somber hazel
#

Ok, thanks!

#

I know this isn't the correct thread, but by any chance, do you know how to loop through this:

{cartItems.map((item) => ( )}

and append it to the lineitems?

timber wraith
#

Can you post to the main channel so I can start another thread, since this is unrelated?