I used this snippet on a client site to work around the issue. This way, the gift card can be applied through the normal coupon code field, but it will be added as a normal gift card (so coupon is also applied to shipping costs)
// Code partially from plugins/yith-woocommerce-gift-cards-premium/lib/class-yith-ywgc-cart-checkout.php: apply_gift_card_code_callback()
function fix_yith_gift_card_as_coupon()
{
check_ajax_referer('apply-coupon', 'security');
$code = sanitize_text_field($_POST['coupon_code']);
if (!empty($code)) {
$gift = YITH_YWGC()->get_gift_card_by_code($code);
if (YITH_YWGC()->check_gift_card($gift)) {
$applied_gift_cards = [];
if (isset(WC()->session)) {
$applied_gift_cards = WC()->session->get('applied_gift_cards', []);
}
$code = strtoupper($code);
if (!in_array($code, $applied_gift_cards)) {
$applied_gift_cards[] = $code;
WC()->session->set('applied_gift_cards', $applied_gift_cards);
}
wc_add_notice($gift->get_gift_card_message(\YITH_YWGC_Gift_Card::GIFT_CARD_SUCCESS));
wc_print_notices();
wp_die();
}
}
}
add_action('wp_ajax_woocommerce_apply_coupon', 'App\fix_yith_gift_card_as_coupon', 5);
add_action('wp_ajax_nopriv_woocommerce_apply_coupon', 'App\fix_yith_gift_card_as_coupon', 5);
add_action('wc_ajax_apply_coupon', 'App\fix_yith_gift_card_as_coupon', 5);