Jump to content

WHMCS Checkout


Recommended Posts

Hi again,


I am just finishing up my API for WHMCS, and I have a question about checkouts.


I am currently building a one-page checkout in Laravel for WHMCS using the API.


What would be the correct order of API calls?


Currently I have:


  • Add Client Account
  • Add Payment Method
  • Add Order / Invoice


Would that also automatically generate the invoice? 


Or would I need to generate the invoice at checkout?


Does that also capture the payment, or do I need to capture too?


Would this also set-up automatic billing through Stripe

Link to comment
Share on other sites

Your order is correct as the AddOrder requires a client id and the payment method.  AddOrder has noinvoice and when set to true it wont generate an invoice but if not set it will generate one.   You'll need to do the CapturePayment API call to get payment. 

Flow would likely be :

  • Add Client Account
  • Add Payment Method
  • Add Order
  • Capture Payment from invoice of the new order
  • Accept Order
  • Profit...?


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.

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