• Resolved robwebfx

    (@robwebfx)


    Hi!

    We’re looking to cancel authorized payments after seven days. With this plugin, we’re seeing that when an order is cancelled, “Capture authorized payment” is no longer an available action under “Order actions” in the WP admin; however, in PayPal, we’re seeing Payment as still pending and “Capture” as an available action.

    After digging through the code, in WooCommerce\PayPalCommerce\WcGateway\Processor\RefundProcessor, it looks like authorized payments are voided if the order is refunded.

    Is there something standalone that we can use to trigger authorized payment for cancelled orders to be voided (and cannot be captured in the future)?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @robwebfx,

    I brought it up with our developers but similar to the scenario with capturing payments, there are currently no ready-to-be-used hooks that could be used to void authorizations programmatically. Improving ease of plugin access for third parties is on our to-do list though and I will try to let you know when there are any developments in this regard.

    It would be technically possible, but it requires a bit of developer documentation because, without dedicated hooks, interactions with PayPal Payments work differently compared to regular plugins.

    Kind regards,
    Niklas

    Thread Starter robwebfx

    (@robwebfx)

    Got it — we’ll keep an eye on future changes!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Programmatically voiding orders’ is closed to new replies.