Communication problem with card payment
-
Hello,
From Spain. The problem is that when a client pays with a card, successfully and the money deposited in the account, he does not communicate it to me by email and in Woocommerce orders it appears pending payment and after a while he cancels it. I use the Redsys platform, with CECA I never had problems.
I tried the “Autocomplete WooCommerce Orders” plugin that works well for me on other websites, and disabled with this code:
add_action( ‘woocommerce_thankyou’, ‘wc_auto_complete_paid_order’, 20, 1 );
function wc_auto_complete_paid_order( $order_id ) {
if ( ! $order_id )
return;// Get an instance of the WC_Product object
$order = wc_get_order( $order_id );// No updated status for orders delivered with Bank wire, Cash on delivery and Cheque payment methods.
if ( in_array( $order->get_payment_method(), array( ‘bacs’, ‘cod’, ‘cheque’, ” ) ) ) {
return;
}
// For paid Orders with all others payment methods (paid order status “processing”)
elseif( $order->has_status(‘processing’) ) {
$order->update_status( ‘completed’ );
}
}But the problem persists.
Anybody knows what could be the problem?Thank you.
The page I need help with: [log in to see the link]
- The topic ‘Communication problem with card payment’ is closed to new replies.