wc-api-java icon indicating copy to clipboard operation
wc-api-java copied to clipboard

Apply coupon compatibly v3

Open Pelellone opened this issue 5 years ago • 2 comments

Hi @icoderman,

first of all, thanks for your job. Really appreciate it! As from the title i'm trying to apply coupon in an order but seems compatible only with version V3. In fact if I apply coupon, the order will filled with coupon information but the price still remains the same. I've read about work-around, trying to change the total price of the order and pushing it, but also this is unreachable for me. Any suggestion?

Emiliano

Pelellone avatar Aug 10 '19 09:08 Pelellone

Hi @Pelellone thank you! I would be happy to approve your PR which implements V3 support and coupons :)

omandryk avatar Aug 24 '19 06:08 omandryk

Hi @icoderman! I tried to add V3 compatibility for enabling coupons in order. All works adding just V3("v3") in ApiVersionType. I've tested order and coupons of course.

Hope that help you!

Pelellone avatar Aug 26 '19 17:08 Pelellone