Paypal: Pass custom value from field to PayPal

  • APAForms
    Asked 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.

    151518300013b5b3b3 4ac4 4b1b 8165 bae73f Screenshot 10

    I downloaded the code and added javascripts to add the text under the box dynamically but they are not passed to PayPal.

    15151872460133bc63 d88e 46fc b6c3 c829cc Screenshot 21


    cgi-bin/webscr?business=xz@abc.org&charset=utf-8&cmd=_donations&currency_code=USD&rm=2&notify_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

  • aubreybourke
    Replied 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:

    1515191647The Easiest Online Form Builde Screenshot 10

  • APAForms
    Replied 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

  • aubreybourke
    Replied 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