[Skip to main content](#vessel-content)

#   PayPal Checkout - Shipping Address Omission

##

- **[cmb](/forum/user/9805-cmb "View cmb's Profile")**
- [![cmb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9805-cmb "View cmb's Profile") Topic Author
- [ Offline](/forum/user/9805-cmb)

Less More

- Posts: 46
- Thank you received: 6
-
-

3 years 3 weeks ago -  3 years 3 weeks ago [\#356573](#356573) by [cmb](/forum/user/9805-cmb "View cmb's Profile")  *[PayPal Checkout - Shipping Address Omission](/forum/29-payment-methods/907268-paypal-checkout-shipping-address-omission#356573 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 3.10.12 -- PHP version -- : 8.2.12 -- Browser(s) name and version -- : Firefox 119.0.1  I'm working on a site that solely uses PayPal for checkout. We recently switched the payment plugin from the HikaShop Paypal payment plugin to the HikaShop Paypal Checkout payment plugin. Before the change, PayPal reported the address of the customer to the merchant. After the change the customer's address is not available to the merchant.  PayPal responded to an inquiry about this omission with this message:  Upon checking the REST API logs of your account, we could see that your website is passing the &quot;shipping&#95;preference&quot; parameter as &quot;NO&#95;SHIPPING&quot; via &quot;Create Order &#91;1&#93;&quot; API call. This is the reason why the &quot;Shipping Address&quot; details is missing.  Further PayPal suggests that the shipping&#95;preference should be: &quot;GET&#95;FROM&#95;FILE&quot;  The website uses a fixed price for shipping each product using the HikaShop manual shipping plugin in which 'Use price per product' is set to Yes. The price per product is USD22.00. Under Restrictions, a published warehouse is selected.  What additional steps should I take to send the correct shipping&#95;preference to PayPal?")* was created by *[cmb](/forum/user/9805-cmb "View cmb's Profile")*

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 3.10.12
-- PHP version -- : 8.2.12
-- Browser(s) name and version -- : Firefox 119.0.1

I'm working on a site that solely uses PayPal for checkout. We recently switched the payment plugin from the HikaShop Paypal payment plugin to the HikaShop Paypal Checkout payment plugin. Before the change, PayPal reported the address of the customer to the merchant. After the change the customer's address is not available to the merchant.

PayPal responded to an inquiry about this omission with this message:

*Upon checking the REST API logs of your account, we could see that your
website is passing the "shipping\_preference" parameter as "NO\_SHIPPING"
via "Create Order \[1\]" API call. This is the reason why the "Shipping
Address" details is missing.*

Further PayPal suggests that the shipping_preference should be: "GET_FROM_FILE"

The website uses a fixed price for shipping each product using the HikaShop manual shipping plugin in which 'Use price per product' is set to Yes.
The price per product is USD22.00. Under Restrictions, a published warehouse is selected.

What additional steps should I take to send the correct shipping_preference to PayPal?

---

Charles

Last edit: 3 years 3 weeks ago by [cmb](/forum/user/9805-cmb "View cmb's Profile"). Reason: Punctuation change.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDcyNjgtcGF5cGFsLWNoZWNrb3V0LXNoaXBwaW5nLWFkZHJlc3Mtb21pc3Npb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

3 years 3 weeks ago [\#356586](#356586) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout - Shipping Address Omission](/forum/29-payment-methods/907268-paypal-checkout-shipping-address-omission#356586 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 3.10.12 -- PHP version -- : 8.2.12 -- Browser(s) name and version -- : Firefox 119.0.1  I'm working on a site that solely uses PayPal for checkout. We recently switched the payment plugin from the HikaShop Paypal payment plugin to the HikaShop Paypal Checkout payment plugin. Before the change, PayPal reported the address of the customer to the merchant. After the change the customer's address is not available to the merchant.  PayPal responded to an inquiry about this omission with this message:  Upon checking the REST API logs of your account, we could see that your website is passing the &quot;shipping&#95;preference&quot; parameter as &quot;NO&#95;SHIPPING&quot; via &quot;Create Order &#91;1&#93;&quot; API call. This is the reason why the &quot;Shipping Address&quot; details is missing.  Further PayPal suggests that the shipping&#95;preference should be: &quot;GET&#95;FROM&#95;FILE&quot;  The website uses a fixed price for shipping each product using the HikaShop manual shipping plugin in which 'Use price per product' is set to Yes. The price per product is USD22.00. Under Restrictions, a published warehouse is selected.  What additional steps should I take to send the correct shipping&#95;preference to PayPal?")*

Hi,

The PayPal Checkout plugin will set the shipping_preference to SET_PROVIDED_ADDRESS when it can provide the shipping address of the customer to PayPal. For that to happen, the shipping address has to have the firstname, lastname, street, city, post code and country fields filled in. If one is missing (because the field is disabled, or not required and the customer didn't provide it), then the plugin cannot send the partial address as PayPal would just return an error message and prevent the transaction from happening.
So in that case, it sets the shipping_preference to NO_SHIPPING
Thus, I suppose you must have disabled some custom address fields in the Display&gt;Custom fields and that's why you get that behavior.
The previous PayPal plugin didn't had that restriction as even with a partial address, PayPal was still able to process the transaction and just let the customer fill in the missing address fields.

We avoid using GET_FROM_FILE because it would mean the customer would have to enter again his shipping address on PayPal, and it could end up being different from the address in the order on your website, which could lead to shipping mistakes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDcyNjgtcGF5cGFsLWNoZWNrb3V0LXNoaXBwaW5nLWFkZHJlc3Mtb21pc3Npb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cmb](/forum/user/9805-cmb "View cmb's Profile")**
- [![cmb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9805-cmb "View cmb's Profile") Topic Author
- [ Offline](/forum/user/9805-cmb)

Less More

- Posts: 46
- Thank you received: 6
-
-

3 years 3 weeks ago -  3 years 3 weeks ago [\#356606](#356606) by [cmb](/forum/user/9805-cmb "View cmb's Profile")  Replied by *[cmb](/forum/user/9805-cmb "View cmb's Profile")* on topic *[PayPal Checkout - Shipping Address Omission](/forum/29-payment-methods/907268-paypal-checkout-shipping-address-omission#356606 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 3.10.12 -- PHP version -- : 8.2.12 -- Browser(s) name and version -- : Firefox 119.0.1  I'm working on a site that solely uses PayPal for checkout. We recently switched the payment plugin from the HikaShop Paypal payment plugin to the HikaShop Paypal Checkout payment plugin. Before the change, PayPal reported the address of the customer to the merchant. After the change the customer's address is not available to the merchant.  PayPal responded to an inquiry about this omission with this message:  Upon checking the REST API logs of your account, we could see that your website is passing the &quot;shipping&#95;preference&quot; parameter as &quot;NO&#95;SHIPPING&quot; via &quot;Create Order &#91;1&#93;&quot; API call. This is the reason why the &quot;Shipping Address&quot; details is missing.  Further PayPal suggests that the shipping&#95;preference should be: &quot;GET&#95;FROM&#95;FILE&quot;  The website uses a fixed price for shipping each product using the HikaShop manual shipping plugin in which 'Use price per product' is set to Yes. The price per product is USD22.00. Under Restrictions, a published warehouse is selected.  What additional steps should I take to send the correct shipping&#95;preference to PayPal?")*

The website **never** collects name and address information. It relies solely on PayPal for order handling. The website visitor places items in the shopping cart and HikaShop sends that information (item name, quantity, cost, shipping charge etc.) to PayPal.

If the HikaShop PayPal Checkout plug-in sent the shipping_preference of GET_FROM_FILE to PayPal, the merchant would have the needed address information as before from the legacy PayPal plug-in.

---

Charles

Last edit: 3 years 3 weeks ago by [cmb](/forum/user/9805-cmb "View cmb's Profile"). Reason: Removed duplicated word.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDcyNjgtcGF5cGFsLWNoZWNrb3V0LXNoaXBwaW5nLWFkZHJlc3Mtb21pc3Npb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

3 years 3 weeks ago [\#356607](#356607) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Checkout - Shipping Address Omission](/forum/29-payment-methods/907268-paypal-checkout-shipping-address-omission#356607 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 3.10.12 -- PHP version -- : 8.2.12 -- Browser(s) name and version -- : Firefox 119.0.1  I'm working on a site that solely uses PayPal for checkout. We recently switched the payment plugin from the HikaShop Paypal payment plugin to the HikaShop Paypal Checkout payment plugin. Before the change, PayPal reported the address of the customer to the merchant. After the change the customer's address is not available to the merchant.  PayPal responded to an inquiry about this omission with this message:  Upon checking the REST API logs of your account, we could see that your website is passing the &quot;shipping&#95;preference&quot; parameter as &quot;NO&#95;SHIPPING&quot; via &quot;Create Order &#91;1&#93;&quot; API call. This is the reason why the &quot;Shipping Address&quot; details is missing.  Further PayPal suggests that the shipping&#95;preference should be: &quot;GET&#95;FROM&#95;FILE&quot;  The website uses a fixed price for shipping each product using the HikaShop manual shipping plugin in which 'Use price per product' is set to Yes. The price per product is USD22.00. Under Restrictions, a published warehouse is selected.  What additional steps should I take to send the correct shipping&#95;preference to PayPal?")*

Hi,

So why not letting HikaShop collect the address so that it would send it to PayPal so that the customer doesn't have to enter it on PayPal ?

Now, you can copy the file plugins/hikashoppayment/paypalcheckout_end.php to templates/YOUR_TEMPLATE/hikashoppayment/paypalcheckout_end.php and add the line below at the top: Code:

&lt;?php $this-&gt;orderData-&gt;application_context-&gt;shipping_preference = 'GET_FROM_FILE'; ?&gt;

That will force PayPal to collect the address on its end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDcyNjgtcGF5cGFsLWNoZWNrb3V0LXNoaXBwaW5nLWFkZHJlc3Mtb21pc3Npb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cmb](/forum/user/9805-cmb "View cmb's Profile")**
- [![cmb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9805-cmb "View cmb's Profile") Topic Author
- [ Offline](/forum/user/9805-cmb)

Less More

- Posts: 46
- Thank you received: 6
-
-

3 years 3 weeks ago [\#356613](#356613) by [cmb](/forum/user/9805-cmb "View cmb's Profile")  Replied by *[cmb](/forum/user/9805-cmb "View cmb's Profile")* on topic *[PayPal Checkout - Shipping Address Omission](/forum/29-payment-methods/907268-paypal-checkout-shipping-address-omission#356613 "-- HikaShop version -- : 5.0.0 -- Joomla version -- : 3.10.12 -- PHP version -- : 8.2.12 -- Browser(s) name and version -- : Firefox 119.0.1  I'm working on a site that solely uses PayPal for checkout. We recently switched the payment plugin from the HikaShop Paypal payment plugin to the HikaShop Paypal Checkout payment plugin. Before the change, PayPal reported the address of the customer to the merchant. After the change the customer's address is not available to the merchant.  PayPal responded to an inquiry about this omission with this message:  Upon checking the REST API logs of your account, we could see that your website is passing the &quot;shipping&#95;preference&quot; parameter as &quot;NO&#95;SHIPPING&quot; via &quot;Create Order &#91;1&#93;&quot; API call. This is the reason why the &quot;Shipping Address&quot; details is missing.  Further PayPal suggests that the shipping&#95;preference should be: &quot;GET&#95;FROM&#95;FILE&quot;  The website uses a fixed price for shipping each product using the HikaShop manual shipping plugin in which 'Use price per product' is set to Yes. The price per product is USD22.00. Under Restrictions, a published warehouse is selected.  What additional steps should I take to send the correct shipping&#95;preference to PayPal?")*

> nicolas wrote: So why not letting HikaShop collect the address so that it would send it to PayPal so that the customer doesn't have to enter it on PayPal ?

We don't want to burden potential customers with unnecessary work especially in cases in which their addresses are already on file at PayPal.
We try to eliminate roadblocks wherever possible.

> Now, you can copy the file plugins/hikashoppayment/paypalcheckout\_end.php to templates/YOUR\_TEMPLATE/hikashoppayment/paypalcheckout\_end.php and add the line below at the top:
>
> Code:
>
> &lt;?php $this-&gt;orderData-&gt;application_context-&gt;shipping_preference = 'GET_FROM_FILE'; ?&gt;

I have created a new directory on the site:
*/templates/protostar/hikashoppayment*
In that directory I have placed a copy of:
*/plugins/hikashoppayment/paypalcheckout\_end.php*
Then I modified the copied file by inserting the PHP line above at line 11.

---

Charles

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDcyNjgtcGF5cGFsLWNoZWNrb3V0LXNoaXBwaW5nLWFkZHJlc3Mtb21pc3Npb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.069 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
