Payment Method Customization for Giftcard Use-Case

In essence, we are looking to implement a feature wherein a payment method is hidden upon the application of a gift card during the checkout process. We are exploring the feasibility of achieving this objective through the Payment Customization functionality available within the Shopify Functions API.

Your insights into whether this functionality is supported by the Shopify Functions API would be greatly appreciated. Additionally, if you have any suggestions or alternative approaches to accomplishing this use-case, we would welcome your input.

You can hide a payment method upon the application of a gift card using the PayRules: Hide Payment Methods app. Here’s how you can do it:

  1. Choose the payment method you want to hide like “Cash on Delivery (COD)” from the “Select payment methods” field.
  2. In the “Products” field, choose your gift card products.

This will ensure that the specified payment method like COD is hidden when a gift card is used during checkout.

I made a similar solution for a client. They need to hide COD when gift card is applied. I used the app : https://apps.shopify.com/checkout-ninja . The customisation only work with Shopify Plus customers.

Here is the rule look like,