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"
}
...
}