-
APAFormsAsked on January 5, 2018 at 3:08 PM
Hello,
On the PayPal donation form, I noticed that the value under Payment Box Sub Label is passed to PayPal as the item description. I have a form where users can choose a group that they would like to donate to from a drop down box and then choose the amount they would like to donate. How do I pass the value from the drop down box to the Payment Box Sub Label.
I downloaded the code and added javascripts to add the text under the box dynamically but they are not passed to PayPal.
cgi-bin/webscr?business=xz@abc.org&charset=utf-8&cmd=_donations¤cy_code=USD&rm=2¬ify_url=https://ipn.jotform.com/ipns/paypal.php&no_shipping=2&return=https://submit.jotformpro.com/complete.php?sid=&bn=JotForm_SP&image_url=&upload=1&amount=25&item_name=subtext
Thanks -
aubreybourkeReplied on January 5, 2018 at 5:34 PM
If you add a text field to your form you can pass that field to your payment integration.
For example:
-
APAFormsReplied on February 2, 2018 at 10:58 AM
Hello,
Thanks for your response. I added the field as described by you and the data from that does not carry over as the line item to PayPal. As this is a donation transaction it still carries the Payment Box Sub Label as the value. Where is the data from this field you mentioned being carried over into Paypal?
Thanks,
Sridhar
-
aubreybourkeReplied on February 2, 2018 at 11:24 AM
Sorry for the confusion. I thought you wanted to pass a custom message to your Paypal transaction. I see now this is not the case.
You would like to transfer the amount from your single choice field to Paypal right?
To do this we must use a form calculation widget. Search for it on the left and drag it onto your form.
https://widgets.jotform.com/widget/calculation
Then click on the wizard (magic wand icon) and add the "choose donation amount" field.
Now open your Paypal transaction and where it says "Payment Type" select "User defined amount". And where it says "Get price from" select your form calculation widget.
Full instructions here:
How-to-Pass-a-Calculation-to-a-Payment-Field