payment customization function (product discount,cart discount)

Shopify Partner
1 0 0

I am creating an app for checkout page, Were payment methods will be hide according to the conditions on basis of cart total , quantity etc. Now i want to hide the payment methods on basis of product discount or cart discount.
So can any one help me to get the total discount,product discount values in payment customization function.

Replies 0 (0)