• Resolved cathanasiadismyikona

    (@cathanasiadismyikona)


    Hey there,

    Thanks for this great plugin.

    We’re using the plugin for different kinds of payments (Credit Card, Apple/Google Pay, Local payments) with great success, but the MobilePay exhibits a strange behaviour: When an order is created it’s been given the on-hold status, so that our system which is fully automated regarding order processing doesn’t inform about it and the order gets cancelled after some amount of time.

    Is it possible to set the status of a MobilePay order initially to processing, so that it’s executed, in order to be set as captured when is completed in WooCommerce?

    Thank you for your time & effort.

    Best Regards,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @cathanasiadismyikona

    If an order paid using MobilePay is set to on-hold that means you’re authorizing the payment so you can capture it later. Why do you have your site configured to cancel orders that have teh on-hold status?

    You can use filter wc_stripe_authorized_order_status to customize the order’s status when the payment is authorized.

    Example:

    add_filter('wc_stripe_authorized_order_status', function($status, $order){
    if($order->get_payment_method() === 'stripe_mobilepay'){
    $status = 'processing';
    }
    return $status;
    }, 10, 2);

    Kind Regards

    Thread Starter cathanasiadismyikona

    (@cathanasiadismyikona)

    Hi @mrclayton,

    Thank you so much for the response.

    Yes we do authorise and capture only after the order is set to completed.

    The on-hold status getting cancelled is due to passing the amount of time required for a waiting for payment order to get cancelled. We have an automated process to pass orders to our manufacturing facility and any other status than processing is skipped.

    Nevertheless the proposed solution seems what it’s needed. I’ll post here and close the ticket after the tests are successful.

    Best Regards

    Thread Starter cathanasiadismyikona

    (@cathanasiadismyikona)

    I can confirm that that was the solution.

    Thank you & Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.