• Resolved mmcculli

    (@mmcculli)


    I know right now you can setup most payment plugins to authorization of payment, then the admin later will use the capture button to capture the payment.

    I would like to automatic this capture based on the delay. Say 48 hours after the purchase. In our site we want to allow customers a period of time to cancel their order before we capture payment and fulfill the order.

    I know some payment plugins have an auto-capture on order status. So I was wondering if I write a wp-cron function that changes the order status after 48 hours would this work? Not sure if just changing the order status would trigger the capture logic.

    If anyone has any ideas how to setup this up it would be great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    So I was wondering if I write a wp-cron function that changes the order status after 48 hours would this work? Not sure if just changing the order status would trigger the capture logic.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers.

    Thread Starter mmcculli

    (@mmcculli)

    Thanks for the fast reply. I was scared this was not something easy to do through code.

    If anyone out there has any ideas on how to do this a different way it would be great. Example: I was trying to see if I could do this within the getaway’s portal itself. Example: If I am using PayPal can I have it auto capture on their end, then it would update woocommerce.

    Hi @mmcculli,

    Thanks for getting back to us on this! I don’t know of any way to do this from within the payment gateway side of any of the gateways we commonly work with.

    I did thing of one option. You could use a plugin such as WooCommerce Subscriptions to set up your products as short term subscription products. Effectively, customers would place an order for a 48 hour “free trial” subscription that would charge them after 48 hours. If they decided to cancel before that, no charge would be placed.

    That option would be fully automated, and would automatically charge after whatever delay you set.

    If you think that might work and have any additional questions on that option, please open a support request in https://woocommerce.com/contact-us/#sales-form

    Thread Starter mmcculli

    (@mmcculli)

    Thanks for the interesting solution idea. I will have to talk to the client and find out which direction they wish to go.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We are happy to help ??

    Great! I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Capture Payment based on delay’ is closed to new replies.