• Resolved diesua

    (@diesua)


    Hi, When the payment took more than 1 mins, the new order notification to the admin will not be sent. However, the new order notification email to the customer is sending correctly. This will happen when the payment takes more than 1 mins. Please help, thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter diesua

    (@diesua)

    Hi, I figure out this will happen when the customer pay with “American Express”. But I still don’t know how to fixed this

    Hi @diesua,

    That is unusual. Are these orders successfully paid for with American Express?

    Thread Starter diesua

    (@diesua)

    @3sonsdevelopment Thanks for the replay, the payment is successfully paid. The status of the order has been changed to processing, and the email to the customer sent as well. Only the email to Admin is not sent…..

    Thread Starter diesua

    (@diesua)

    $order = wc_get_order($oid);
    $order->update_status(‘processing’);

    $mailer = WC()->mailer();
    $mails = $mailer->get_emails();
    foreach ($mails as $mail) {
    if ($mail->id == ‘customer_processing_order’) {
    $mail->trigger($oid);
    }
    }

    above this the code I found in this plugin

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey again!

    Is “American Express” a different payment method on your site than other payment cards, or are all credit cards processed in the same payment method?

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Since it’s been a while since we last heard back from you, I’m going to mark this thread resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘New order notification email to admin is not sending’ is closed to new replies.