• Resolved palmscollective

    (@palmscollective)


    I’m working on a website whereby users create accounts at checkout so that they can automatically start their LMS after purchase (a quick link is provided in the my-account page).

    However, due to allowing customers to create accounts at checkout, if the customer is redirected to an external payment gateway such as PayPal/Partial.ly and doesn’t complete the purchase, a user account is still created that they can access.

    Turning off the ability to create user accounts at checkout isn’t an option.

    We’ve tried some workarounds (e.g. add different user roles (and access permissions) to users whose orders change to “Completed”) but this process of assigning a user role on Order Status isn’t 100% reliable. This method is also impacting some other plugins, so I’m finding myself having to go in and delete users manually each time they don’t make a payment, often creating a cookie conflict in WP Cerber if they try to pay again (as a user was created the first time around, when they didn’t pay).

    Ideally, I’m looking to see if anyone knows of a plugin that can automatically delete WordPress User accounts if they haven’t made a purchase (i.e. it’s cancelled or failed in WooCommerce).

    Or, even better, if there is a way to only provision a user account once an order is “Completed”.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi there,

    It sounds like instead of granting access when the account is created, you want to grant access when the relevant product’s purchase was successful. An extension like WooCommerce Memberships does exactly that.

    The membership controls access to various bits of content. To gain access to that membership you have to buy a linked product. The successful purchase of said product applies the membership to the user, which in turn unlocks the content.

    Whether or not the user has an account is, in that context, irrelevant.

    If you have more specific questions about any of the extensions, feel free to ask them via this sales form.

    If you have more specific questions about Memberships, feel free to ask them via this sales form.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @palmscollective,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above plugin recommendationwas helpful!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic user account deletion for failed payments’ is closed to new replies.