Adds discounts field to Checkout Sessions
What’s new
Adds the discounts field to the Checkout Session object. The discounts
field is an array of discounts applied to the Checkout Session.
Impact
You can use discounts
to retrieve the discounts applied to a Checkout Session, including those applied by you or the customer when creating the Checkout Session.