jimlongo Posted June 4, 2019 Share Posted June 4, 2019 (edited) Anyone know exactly what this does? the parameter "firstpaymentamount" https://developers.whmcs.com/api-reference/updateclientproduct/ Does it adjust the next payment only? Edited June 4, 2019 by jimlongo 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted June 4, 2019 Share Posted June 4, 2019 It sets this value (Product/Service View). 0 Quote Link to comment Share on other sites More sharing options...
jimlongo Posted June 4, 2019 Author Share Posted June 4, 2019 (edited) Thanks, so in practice this means the 1. client pays $30 now 2. firstpaymentamount on next Due Date 3. then the recurring amount thereafter? NOTE: I'm doing this because I can't find a way to adjust the initial payment on order execution. Edited June 4, 2019 by jimlongo added info 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted June 5, 2019 Share Posted June 5, 2019 @jimlongo First Payment Amount is the amount the client pays when they place the order, Recurring Amount is what is charged on each Next Due Date thereafter If you can provide more information or an example of what you are trying to achieve we might be able to provide some options 0 Quote Link to comment Share on other sites More sharing options...
jimlongo Posted June 5, 2019 Author Share Posted June 5, 2019 @WHMCS ChrisD thank you for responding. I had an earlier thread in which I was asking how I could sell items (locations) that are attached to an initial free subscription that will be automatically provisioned by cPanel or Plesk. Each of these locations should have the same monthly anniversary date as tne original (which I can get from my API). Additionally the item should be sold with a pro-rated price for the first month, then the recurring price each month after that. Example: the customer's free sub has a renewal date of the 15th of the month. They purchase a location (which costs $10/month recurring) on the first of the month. This location service should have a renewal date of the 15th, and the initial price should be $5, then renew on the 15th at $10/m thereafter. I've done that so far by using the UpdateClientProduct API and adjusting the nextduedate of the product at the ShoppingCartCheckoutCompletePage hook. But I have been unable to set the price on checkout to the pro-rated price. I have updated the firstpaymentamount, but I don't think that is doing exactly what I want. Seems to me this means the customer pays full price for the partial month, and then the pro-rated amount for the next full month. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted June 5, 2019 Share Posted June 5, 2019 I suspect that what you describe is exactly how Pro-rata Billing already works. 0 Quote Link to comment Share on other sites More sharing options...
jimlongo Posted June 5, 2019 Author Share Posted June 5, 2019 Yeah, but you have to pick a universal anniversary date for that. Each customer would have a different anniversary date in my scenario. 0 Quote Link to comment Share on other sites More sharing options...
jimlongo Posted June 5, 2019 Author Share Posted June 5, 2019 @WHMCS ChrisD or @Kian If firstpaymentamount does as you suggest, then what would be the correct hook to trigger it? Currently I'm using ShoppingCartCheckoutCompletePage which I'm guessing is too late. 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.