• Resolved mabelb28

    (@mabelb28)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mabelb28 – your best bet here is to contact the developers of the payment gateway plugin you’re currently using. WooCommerce core does not affect payment processing, as this is set individually by the payment gateway plugin developers.

    – Joey

    Thread Starter mabelb28

    (@mabelb28)

    Thanks Joey,

    I contacted the plugin developers but still had no response.
    Since the payment is done correctly, I wanted to ask if anyone had had a similar problem.

    I’ll wait for you to answer me. Thanks so much for responding Joey.

    A greeting.
    Mabel.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Communication problem with card payment’ is closed to new replies.