PayPal not pre-populating country field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am pre-populating a PayPal form using the variables on this page: https://www.paypal.com/il/selfhelp/article/how-do-i-pre-populate-my-customer's-paypal-sign-up-form-t...
All fields are successfully pre-populated except for country (it's always US), state and phone. It seems to be all fields that are select form fields with several options.
My PayPal form has the following fields:
<INPUT TYPE="hidden" NAME="first_name" VALUE="<?php echo $jf_fname; ?>">
<INPUT TYPE="hidden" NAME="last_name" VALUE="<?php echo $jf_lname; ?>">
<INPUT TYPE="hidden" NAME="email" VALUE="<?php echo $jf_email; ?>">
<INPUT TYPE="hidden" NAME="address1" VALUE="<?php echo $jf_address1; ?>">
<INPUT TYPE="hidden" NAME="address2" VALUE="<?php echo $jf_address2; ?>">
<INPUT TYPE="hidden" NAME="city" VALUE="<?php echo $jf_city; ?>">
<INPUT TYPE="hidden" NAME="state" VALUE="<?php echo $jf_prov; ?>">
<INPUT TYPE="hidden" NAME="zip" VALUE="<?php echo $jf_postalcode; ?>">
<INPUT TYPE="hidden" NAME="lc" VALUE="CA">
<INPUT TYPE="hidden" NAME="country" VALUE="CA">
(phone not included here; I added it as a test and it wasn't pre-populated either)
I would like to set the country to Canada and have province and postal code fields instead of state and zip code.
Any help would be much appreciated. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ever find a solution? I'm running into the same issue, and Paypal's documentation appears to be wrong - I've made sure I'm using both the field name & country codes they specify, but it still doesn't work.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- paypal buttons can't show in PayPal Payments Standard
- Paypal Pay button generates GENERIC_ERROR in PayPal Payments Standard
- Platform Marketplace integration approval in Sandbox Environment
- Sending addtional information aout payment to API Session in REST APIs
- Update your phone validation for Australia in PayPal Payments Standard