Announcement

Collapse
No announcement yet.

Installment Using Full Price Not Unit Price

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CnP.Support
    replied
    Good day!

    Great to hear. Please let us know if we can be of any further assistance.

    Leave a comment:


  • launchbrigade
    replied
    Thanks

    Ok. I thought this was a built in feature.

    Ultimately I created a hidden input and swapped the "Other1" element name with the text input when the checkbox is clicked and the Installments section is toggled. It's working with that approach.

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    We reviewed your code and the following are the issues we found. Please keep this in mind that we do not debug 3rd party codes as it is, at times, impossible to follow someone else's logic. Our review is based on trying to find the extreme & obvious violations of the API calls.
    • In using FaaS you are using Installment as a payment method- this method is not supported. Please see the supported nodes: http://manual.clickandpledge.com/For...g_Transactions -- The installment method is not included due to the complexity of splitting a number into multiples that generate remainders, for example 1000/3 which translate to 333.33 and resulting in 1 penny difference. You may do this with your own JavaScript but the API only supports the subscription model where a set amount is repeated based on a set interval.

      Click image for larger version

Name:	Recurring.jpg
Views:	1
Size:	12.1 KB
ID:	15345
    • OTHER Field: It is best to add a JavaScript that enables the checkbox next to your OTHER field since if a value is entered in that field its radio button will not be selected. A user may enter $10 in the OTHER field not realizing that the checkbox is set to another amount. See below:

      Click image for larger version

Name:	OTHER.jpg
Views:	1
Size:	16.7 KB
ID:	15344
    • The default value of the Installment node is set to 999. The 999 value will result to indefinite recurring. The following is what is currently in your code (Line 254-266)


    <div id="installments" style="display:none;">
    Divide my payments into:
    <input type="text" size="5" value="999" id="Installment" name="Installment" />
    Pay <span id="amount-per-payment"></span> every
    <select id="Periodicity" name="Periodicity">
    <option value="2 Weeks">2 Weeks</option>
    <option selected="selected" value="Month">Month</option>
    <option value="2 Months">2 Months</option>
    <option value="Quarter">Quarter</option>
    <option value="6 Months">6 Months</option>
    <option value="Year">Year</option>
    </select>
    </div>

    I hope the above assists you in fixing the errors and potential usability issues that may arise for the OTHER field selection.

    Please let us know if we can be of any further assistance.

    Leave a comment:


  • CnP.Support
    replied
    Good day!

    Sorry I did not ask that you move the line. I have no idea what your logic is - I was just suggesting that it appears that you are resetting it.

    It is not really easy to debug someone else's program. One of our developers can review your page but we can't make any promises since debugging a code is not really what we do.

    Please give us 48 hours so one of our developers can review it when they have an opening.

    One thing you may want to do for debugging is to change your form post to https://Verify.FaaS.Cloud.ClickandPledge.com - this page will show all the items you are posting to the API. It is a great debugging tool allowing you to see what you are posting. That can help clarify the problem.

    I will request a review of your code but not sure when we will be able to complete it.

    Leave a comment:


  • launchbrigade
    replied
    Ok, I've removed line 266. No change. The amount being posted is not being broken up into smaller payments. Thoughts?

    Leave a comment:


  • CnP.Support
    replied
    Good day!


    I am sorry but we are having a hard time understanding the question.


    The recurring does not have an amount as part of its parameters. Any amount being posted to the basket will become a recurring transaction. Having said that I don't understand what you mean by line: 266


    <input type="hidden" id="Other1-recurring" name="UnitPrice1" />

    The OTHER field is part of the radio button family and should not be changed or repeated.

    Simply add the installment fields and if the value of period is NULL the system will ignore the recurring. If an amount is entered then using "Installment" as you are doing will break the full amount into smaller payments to be paid at the set interval.

    I am not sure if I have cleared your doubt. If not please let us know and we can try to explore it further.

    Leave a comment:


  • launchbrigade
    started a topic Installment Using Full Price Not Unit Price

    Installment Using Full Price Not Unit Price

    In our FaaS form, we recreated the C&P simple form functionality where you choose a price, then click a checkbox to reveal the installment content including the number of desired installments.

    When we did this, we used UnitPrice1 as in this example:
    https://www.clickandpledge.com/Platf.../example/000r/

    However, when we use the same fields as detailed, the Full Price field overrides the Installments price. How do I get the back end to accept the installment field?
    http://www.birchbarkfoundation.org/donate-dev
Working...
X