• Resolved stephen87

    (@stephen87)


    Hello,

    I have variable product that are virtual being sold on my store. Woocommerce collects the customers shipping & billing address no problem but does not send the details to paypal.

    Woocommerce settings – shipping – shipping options are set to “default to customers shipping address”

    PayPal standard has the option “Send shipping details to paypal instead of billing” enabled.

    Below is a copy of the latest order log

    2019-11-28T04:05:40+00:00 INFO Generating payment form for order 13642. Notify URL: https://www.mysite.com/wc-api/WC_Gateway_Paypal/
    2019-11-28T04:05:40+00:00 INFO PayPal Request Args for order 13642: Array
    (
        [cmd] => _cart
        [business] => [email protected]
        [no_note] => 1
        [currency_code] => USD
        [charset] => utf-8
        [rm] => 2
        [upload] => 1
        [return] => https://www.mysite.com/checkout/order-received/13642/?key=wc_order_4tv5fdyD7dbiV&utm_nooverride=1
        [cancel_return] => https://www.mysite.com/cart/?cancel_order=true&order=wc_order_4tv5fdyD7dbiV&order_id=13642&redirect&_wpnonce=b99015c352
        [page_style] => mystyle
        [image_url] => https://www.mysite.com/logo.png
        [paymentaction] => sale
        [invoice] => MS-13642
        [custom] => {"order_id":13642,"order_key":"wc_order_4tv5fdyD7dbiV"}
        [notify_url] => https://www.mysite.com/wc-api/WC_Gateway_Paypal/
        [first_name] => ***
        [last_name] => ***
        [address1] => ***
        [address2] => ***
        [city] => ***
        [state] => ***
        [zip] => ***
        [country] => ***
        [email] => ***@***
        [night_phone_a] => ***
        [night_phone_b] => ***
        [night_phone_c] => ***
        [no_shipping] => 1
        [tax_cart] => 0.00
        [item_name_1] => product im sellings name
        [quantity_1] => 1
        [amount_1] => 5
        [item_number_1] => product-im-selling
        [bn] => WooThemes_Cart
    )
    
    2019-11-28T04:06:19+00:00 INFO Checking IPN response is valid
    2019-11-28T04:06:23+00:00 INFO PDT Transaction Status: completed

    I guess the issue is with [no_shipping] => 1

    How do I change this?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter stephen87

    (@stephen87)

    Bump, any ideas guys?

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hiya,

    So I understand that while you’re selling virtual products, the billing and shipping addresses aren’t being sent to PayPal – you’ve confirmed that and shared the logs.

    This is because you’re selling virtual products. The address doesn’t need to be sent to PayPal in that case. If you try it with a physical product, you should see that the address is included.

    Does that clear things up for you?

    Thread Starter stephen87

    (@stephen87)

    Just an update for those who have a similar issue. I know how annoying it is to google a problem only to find a SOLVED message but no actual fix.

    After speaking with Woocommerce.com directly it turns out the latest update stopped virtual products from sending addresses to paypal.

    You need to add some code to your functions.php

    Since WooCommerce 3.7, there was a change included through which the address would not be sent to PayPal if the product is non-shippable. If you would like additional history about this change you can find this here: https://github.com/woocommerce/woocommerce/pull/23773

    You can override this change and force WooCommerce to send address to PayPal even when the product is non-shippable using the function code here: https://gist.githubusercontent.com/madeincosmos/93a65a39a90e14c9c3076589d2ee1aac/raw/098391e578f3ce24796d2f946353cb253cf0008e/functions.php

    You can add the code as it is in your theme’s functions.php file or using a plugin like Code Snippets.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PayPal Standard Not Sending Address’ is closed to new replies.