Jump to content
jimlongo

UpdateClientProduct firstpaymentamount

Recommended Posts

It sets this value (Product/Service View).

sample-9.png.cc098c7e35e2fcea91a1fb417bcafcda.png

Share this post


Link to post
Share on other sites
Posted (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 by jimlongo
added info

Share this post


Link to post
Share on other sites

@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 

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

Yeah, but you have to pick a universal anniversary date for that.  Each customer would have a different anniversary date in my scenario.

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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