Extremely frustrated with why I'm getting a [discount_code(none)] response when the customer did indeed use a discount code for their order.
I'm just doing order.discount_codes and that's returning none. The order shows a discount code "AMA20" for 20% off was used. order.total_discounts even shows '24.03'
Why is not giving me the actual discount code used?