• Resolved fesaponet

    (@fesaponet)


    Hello,

    How can I set scheduled withdrawal every hour? Currently the minimum time interval is every day and I need it to be every hour.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WC Lovers

    (@wclovers)

    HI,

    Please add this code to your site to your site and set “Periodic Withdrawal => Every Hour” ->

    add_filter( 'wcfm_withdrawal_schedule_periods', function( $schedule_periods ) {
    	$schedule_periods['hour'] = 'Every Hour';
    	return $schedule_periods;
    });
    add_filter( 'wcfm_schedule_period_interval', function( $period_interval, $withdrawal_schedule ) {
    	if( $withdrawal_schedule == 'hour' ) {
    		$period_interval = 1/24;
    	}
    	return $period_interval;
    }, 50, 2 );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

    Thank You

    Thread Starter fesaponet

    (@fesaponet)

    Hello,

    Thanks. Now it sets every hour.

    But I’ve noticed that withdrawals don’t work with Stripe. They are never approved automatically.Aand manually when I go to approve the withdrawal request it gives me the error “Withdrawal Requests partially processed, check log for more details.” I have checked the vendor payment information and I still receive this error. I have Woocommerce Stripe payment installed and I have reviewed API keys. I have followed your configuration guide but I don’t get it to work. What’s wrong?

    Thanks

    • This reply was modified 6 years, 5 months ago by fesaponet.
    Plugin Author WC Lovers

    (@wclovers)

    Please check at wp-admin -> WooCommerce -> Status -> Logs -> wcfm stripe log -> is any error generated during withdrawal process?

    Thread Starter fesaponet

    (@fesaponet)

    hello,
    I checked it and I found the next message:

    2020-01-05T00:13:24+00:00 ERROR #000017 – Stripe payment processing failed: Insufficient funds in Stripe account. In test mode, you can add funds to your available balance (bypassing your pending balance) by creating a charge with 4000 0000 0000 0077 as the card number. You can use the the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).

    I’ll do it and I’ll tell you if it fixes.

    Thanks

    Plugin Author WC Lovers

    (@wclovers)

    Sure, please let me know.

    Thanks for the update 🙂

    Thread Starter fesaponet

    (@fesaponet)

    Hi,

    I added funds to stripe balance and it’s all rigth now.

    Thanks

    Plugin Author WC Lovers

    (@wclovers)

    Great … Thanks for the update 😊

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘scheduled withdrawal every hour’ is closed to new replies.