• Resolved abdullahnxb

    (@abdullahnxb)


    Hello

    After updating the stripe plugin to 4.2.2 and WooCommerce to 3.6.5, i am facing a strange problem.

    Everything is working fine and payments go through OK, only issue is with 3D Secure payments.

    I am using woocommerce_order_status_processing hook to perform some custom logic while order is in processing state and using wc_gateway_stripe_process_response stripe hook to get last 4 of card to include in some places (emails etc)

    Code given below

    add_action( 'wc_gateway_stripe_process_response', 'etr_process_payment_logging', 10, 2 );
    function etr_process_payment_logging( $response, $order ) {
        update_post_meta( $order->get_id(), 'Stripe Last4', $response->source->card->last4.' ('.$response->source->card->brand.')' );
    }

    The issue i am facing is, when i use 3D secure credit card, after the successful authentication, woocommerce bypass the woocommerce_order_status_processing hook completely so i lost all my custom logic for that order and i couldn’t even get last 4 of the card, i just get () instead of 4242(visa) and all this is only for 3D secure.

    Thanks

    • This topic was modified 5 years, 4 months ago by abdullahnxb.
    • This topic was modified 5 years, 4 months ago by abdullahnxb.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Payments with 3d secure not initiate woocommerce hooks’ is closed to new replies.