Page 2 of 2 FirstFirst 12
Results 11 to 20 of 74

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

    Today we have lost 25 order so far down to this error. My inbox is getting swapped with this error message from PayPal.

    Is there anyway we can turn of the PayPal EC module until this problem is sorted? I know it is against PayPal TOC, but this is starting to wear a bit thin now.

    I think Zen is great, but it does appear that this module has got a few bugs in for the people that are using the PayFlow UK module (which we must use for some UK specific cards).

    Can anyone shed any ideas on what else we can look at?

    DrByte began to have a look at this, and not sure if he got anywhere or not as I havent heard from him for the last week. Sorry to sound like I am going on, but really need this to be looked at.

    Many thanks,

    Jamie
    Jamie @ Fuzion

    www.InkFuzion.co.uk
    www.FunFuzion.co.uk - now live (with a few bugs, but getting there!)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

    Quote Originally Posted by hedgepig View Post
    All i do to get this problem is this:

    I install a fresh version of zen 1.3.8a and a new empty database
    i then use the UK zones paypal compatible module from your download section (could this be causing the problem???)
    in my store i set as united kingdom and lancashire - in creat account default country id is set to united kingdom.

    I set all necessary details in modules/payment - only paypal website payments pro and paypal express checkout (pro 2.0 payflow uk) are green

    I then add one fictional item and picture.

    i then add this item to my shopping cart

    i create an account for myself using addy in this country (uk)

    i then select to checkout - i have two radio buttons,: fill in credit card details (which seem to work fine) or paypal - when i select the paypal and confirm order i then get the error The field Shipping Address Country is required
    Lyn,
    Thank you for the detailed steps for how-to-recreate this problem.

    I think I may have found something that may provide some relief.
    Will post shortly ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

    For v1.3.8a:
    /includes/modules/payment/paypal/paypal_curl.php
    around line 114 you have a section of code that looks like the following.

    Add the additional lines, as shown:
    Code:
      function SetExpressCheckout($amount, $returnUrl, $cancelUrl, $optional = array()) {
        $values = array_merge($optional, array('AMT'       => $amount,
                                               'RETURNURL' => urlencode($returnUrl),
                                               'CANCELURL' => urlencode($cancelUrl)));
        if ($this->_mode == 'payflow') {
          $values = array_merge($values, array('ACTION'  => 'S', /* ACTION=S denotes SetExpressCheckout */
                                               'TENDER'  => 'P',
                                               'TRXTYPE' => $this->_trxtype,
                                               'RETURNURL' => $returnUrl,
                                               'CANCELURL' => $cancelUrl));
        } elseif ($this->_mode == 'nvp') {
          if (!isset($values['PAYMENTACTION'])) $values['PAYMENTACTION'] = ($this->_trxtype == 'S' ? 'Sale' : 'Authorization');
        }
    
        // convert country code key to proper key name for paypal 2.0 (needed when sending express checkout via payflow gateway, due to PayPal field naming inconsistency)
        if ($this->_mode == 'payflow') {
          if (!isset($values['SHIPTOCOUNTRY']) && isset($values['SHIPTOCOUNTRYCODE'])) {
            $values['SHIPTOCOUNTRY'] = $values['SHIPTOCOUNTRYCODE'];
            unset($values['SHIPTOCOUNTRYCODE']);
          }
        }
    
        // allow page-styling support -- see language file for definitions
        if (defined('MODULE_PAYMENT_PAYPALWPP_PAGE_STYLE'))   $values['PAGESTYLE'] = MODULE_PAYMENT_PAYPALWPP_PAGE_STYLE;
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: "(7) 7 - Field format error: 10731-The field Shipping Address Country is required

    Quote Originally Posted by DrByte View Post
    For v1.3.8a:
    /includes/modules/payment/paypal/paypal_curl.php
    around line 114 you have a section of code that looks like the following.
    Thank you very much.

    I still have the wrong shipping country though. I can now succesfully complete checkout using both the pre checkout link and the link on the payment page.

    However i still get the incorrect country on the shipping address. I have only 1 address book entry allowed in the cart. My address in my cart and on my buyer paypal account are as follows

    My Name
    Street Address
    Area
    City
    Post Code
    United Kingdom

    After completing either of the paypal payment links the shipping address in the cart is

    My Name
    Street Address
    Area
    City, City Post Code <---------------- City listed twice
    United States <---------------- Wrong Country

    When the cart takes me to the PayPal page it does show the postal address with the correct country before returning me to the cart.

    I am testing this with a Live Buyer and Live Seller account.
    I am using 1.3.8a with the code you just posted added into /includes/modules/payment/paypal/paypal_curl.php.
    I have tried this while being logged in on our shop and logged out on our shop.
    Regards

    Dave.

    beauty is in the eye of the beer holder

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Making a "Address Line 2" registration field a required
    By vladimir_vulic in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Jan 2019, 02:27 AM
  2. v153 Moving "country" field breaks state field
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 20 Oct 2014, 12:18 AM
  3. Replies: 5
    Last Post: 21 Sep 2009, 09:15 PM
  4. I need to make the "company" field a required field
    By semaxd in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 Jun 2008, 09:09 PM
  5. Field format error: 10731-The field Shipping Address Country
    By infocom in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 27 May 2008, 10:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg