Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bluey80

    (@bluey80)

    I’m not sure I’m following — do you want two fields in a form that the customer fills out at the checkout page and gets pushed to paypal when the customers clicks on the paypal button?

    Yes I believe that is what he is asking, I need to know the answer to this too. It’s quite urgent. I have the fields in the correct spot on display.php:

    if($item[‘account_2’] == “true”){
    $output .= “Any comments for this order?
    <input type=’hidden’ name=’on1′ value=’Comments’ /><input type=’text’ name=’os1′

    />
    “;
    }

    however nothing is being sent to Paypal and the information doesnt seem to be passing through

    any ideas? I really really really need help on this one. Thank you!!!

    if($item[‘account_2’] == “true”){
    $output .= “Any comments for this order?
    <input type=’hidden’ name=’on1′ value=’Instagram URL’ /><input type=’text’ name=’os1′

    />

    I dont know why it parsed the line break tags but that is the correct code above that I have in my file.

    Plugin Author bluey80

    (@bluey80)

    The is the right approach, but is it more complicated. You will need to wrap a <form> around that input line and have its own submit buttons (edit commends) and send the user-supplied data to SCABN (not Paypal) as what gets sent to Paypal must be generated purely on the web server, not the client side because the content is encrypted. So the user enters “customer message”, clicks submit that sends the data “customer message” to SCABN which needs to take that data and remake the checkout buttons by adding that new data to the buttons and re-encrypting them. Just appending the comments to the Paypal won’t (I don’t think) work because that content isn’t signed/encrypted. Maybe Paypal has a mechanism for adding unencrypted comments to an encrypted cart, but I’m not aware of it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add text fields on Paypal’ is closed to new replies.