rwc Posted November 23, 2011 Share Posted November 23, 2011 I'm trying to set up a series of pages do the following. 1. Get the user information and create the client (if necessary) 2. The user signs up for a basic service 3. Charge the user for the basic service 4. Make other offers (upsells) 5. Create the order/products & charge the account correctly 6. Create the correct module 7. Done I know the basic api calls, but I'm not sure how to properly do #3--how do I run a charge through whmcs (and make sure it goes through correctly) and then apply that amount towards the products orderd in step #6? Thanks! rwc 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted November 24, 2011 Share Posted November 24, 2011 When you call AddClient, theres a field for the credit card information. After this is done, you will need to call CreateInvoice. Once the invoice is created, you can call CapturePayment to run the charge. That will return either success or failure depending on whether it went through or not. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.