• Resolved Luis

    (@luiscordeiro)


    Hi mr.clayton,

    Is there a way to prevent a failed order from creating a subscription in BT ?

    We have several cases where the transaction is failed (Processor Declined) but there is a Pending subscription started, and 1 month later the failed credit card is being charged again.

    Thanks for your help!

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

    (@mrclayton)

    Hi @luiscordeiro,

    I believe this is similar to your other thread:

    https://wordpress.org/support/topic/subscription-created-with-failed-transactions/

    I plan on reviewing that design to see if it’s possible to create the subscription after payment is made which would avoid any issues when a card is declined. I don’t know if I will be able to include any changes before the next release but I have made a note of it.

    Kind Regards,

    Thread Starter Luis

    (@luiscordeiro)

    Hi @mrclayton,
    thanks for the response.

    Yes you’re right, the initial issue is the same.

    On that thread we found out the webhooks were not working and I thought fixing that issue could also solve this situation, but unfortunately it didn’t.

    That’s why this new thread was to find if there is anything we can do as a workaround until that is fixed on the core.

    Is there a hook we can use after the payment is failed, where we can remove any subscription that may have been created by it?

    Thanks!

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @luiscordeiro,

    Webhooks are unrelated to the checkout process and how subscriptions are created.

    There isn’t a good hook you could use at the moment to delete a subscription if the payment failed. It’s odd that you would have a scenario where the payment method was saved without issue but then the transaction is declined. What is the reason for the card decline?

    In any case, I am reviewing the best option to avoid this so that the subscriptions are created last instead of first.

    Kind Regards,

    Thread Starter Luis

    (@luiscordeiro)

    Hi @mrclayton ,
    The most frequent is “Error processing payment. Reason: Declined”.

    We are having some problems because sometimes when the transaction fails, the subscription is still created as Pending.
    After 1 month, the subscription tries another charge on the card and it succeeds, and we end up receiving complaints because the client doesn’t know why he is being charged if the subscription was never started (he didn’t have access to the product during the first month).

    So we have to manually cancel all subscriptions that are started from failed transactions to avoid this. That’s like we would like to, at least, automate deleting the subscription for these transactions, until the plugin is redesigned.

    We will probably try the woocommerce_order_status_failed hook, but maybe there was a better hook on the plugin that we could use instead.

    Thanks!

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @luiscordeiro,

    The woocommerce_order_status_failed hook should work for you. Feel free to reach out to me via the Help button in the plugin settings as I have the next version ready which includes a change so that the subscription is not created until after the transaction.

    You can help test the update.

    Kind Regards,

    Thread Starter Luis

    (@luiscordeiro)

    Hi @mrclayton ok thanks I will!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Preventing Subscription on Failed Payments’ is closed to new replies.