Pledge Installments and the ADF

So I'm trying to build an advanced donation form that will allow me to take a pledge with the first payment and I almost have it working.


In the example, it's as simple as setting the total pledge amount in the designations array for the designation, and then setting the installment amount and number of installments.


So this works if my designation amount and installment amount are the same.


When I set the designation amount to 5000, it goes through the payment process (with the charged amount of $1000) but then the call to complete the donation (/WebAPI/ADFCheckout/Complete) locally generates a 400 bad request.

{
"Gift":{
"PaymentMethod":0,
"Designations":[
{
"Amount":5000,
"DesignationId":"156914D2-1253-4328-855B-7CA967EBC2E1"
}
],
"PledgeInstallment":{
"InstallmentAmount":"1000.00",
"NumberOfInstallments":"5"
}
...
}

Comments

  • So I got this working, don't ask me how ;)


    HOWEVER, there is what I consider to be a serious usability problem, unless I'm doing something wrong.

    https://give.unc.edu/takeupspace


    If you choose any pledge installment option, when you go through to the Blackbaud checkout payment screen, it shows $5,000 in the lower left corner, which is the pledge amount, not the installment amount.


    This will confuse the heck out of donors who will be afraid to continue because they think they're about to charge $5,000.


Categories