Jump to content

After payment, the user's new service/product should be queued for creation


Ahmadreza

Recommended Posts

I have a WHM and I have connected it to WHMCS.

When users order a service and proceed to the payment gateway, after they make the payment, they return to the invoice page. However, since they have ordered a new service, the service creation process happens in the same request after the user returns to the invoice page. As a result, the page stays in a loading state for more than 20 seconds until the service is created, and only after that does the invoice page appear.

I want the service creation to be moved to a queue (either via a cron job or by creating a parallel request), so that immediately after payment, the user is returned to the invoice page.

How can I achieve this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated