How to get coupon code applied to an order?

Created on 30 November 2018, about 6 years ago
Updated 26 November 2024, 26 days ago

Hi,
I am devloping custom module, which will accepts credit card payments.Once payment successfully completed
i am storing all the order details like orderId,productName, Quantity, Price etc. in a custom table.
Besides this i want to store the coupon code which is applied for that order.

How can I get the coupon code which is applied to order?

💬 Support request
Status

Fixed

Version

2.0

Component

DrupalCommerce.org

Created by

🇮🇳India rambabburi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024