Skip to Content Skip to Menu

Help Implementing Options for diffent discounts for month 1 and 2

  • krileon
  • krileon
  • ONLINE
  • Posts: 50403
  • Thanks: 8624
  • Karma: 1472
1 hour 8 minutes ago #343887 by krileon
The screenshot looks correct. You have 2 plans in the basket. They are as follows based off your description.

Plan 1
Initial Price: $23
Recurring Price: $69

Plan 2
Regular Price: $150

This means the first purchase of both plans would be $23 + $150. That would total $173 as shown in your screenshot. The recurring price would then be $69.

When you combine recurring and non-recurring the math can get strange. It'll try and calculate overage's and underage's relative to the recurring price. So in this case it has done the following $173 - $69 = $104 to get the difference between the two.

This however was implemented when Stripe's ability to add one time line items to recurring payments was very limited so that behavior can probably be improved in a future release. Regardless it will always total up to the correct amount. I've added a feature ticket for a future release since it should be doable now since recurring payments can have as many one time line items as needed now as previously only a single on time line item was supported by their API so this math behavior was necessary.

forge.joomlapolis.com/issues/9861


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum