Payment Gateway Not Working
-
Hello! Unfortunately I return to you for a little more help. I have the PRO version of the plugin and I’m using it on our site (arcalei.ro) but no matter what I’ve tried on the checkout page the card payment is not being displayed for this product. I’ve tried the snippet code in the functions.php but to no succes. This is the code that I’ve used:
function pw_gift_card_payment_methods( $available_gateways ) {
global $pw_gift_cards_redeeming;if ( is_admin() ) {
return $available_gateways;
}if ( isset( $pw_gift_cards_redeeming ) && $pw_gift_cards_redeeming->cart_contains_gift_card() ) {
// Cash on Delivery
unset( $available_gateways[‘cod’] );// Direct Bank Transfer
unset( $available_gateways[‘bacs’] );
}return $available_gateways;
}
add_filter( ‘woocommerce_available_payment_gateways’, ‘pw_gift_card_payment_methods’ );Although I’ve set everything right it still doesn’t work. I don’t have any gateway rules set and for all the other items on my site the payment gateways are working fine. The Gift Card is the only product that when chosen gives the message that there is no payment method available. Can you please help me?
Thank you !!The page I need help with: [log in to see the link]
- The topic ‘Payment Gateway Not Working’ is closed to new replies.