Order.discount_codes showing [discount_code(none)] even though a discount code was used on the order

Highlighted
Excursionist
16 2 2

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?

0 Likes