• Hi,
    We’ve been struggling to get the Paypal shipping address after the buyer fills out the Checkout button form, for validation of profile address.

    Here’s what’ve tried so far, after following this thread https://www.s2member.com/forums/topic/saving-paypal-shipping-address-in-wp-userdata-2/ :

    1. Added the ns=”2″ in the button shortcode. The shortcode is as below:

    [s2Member-PayPal-Button level=”2″ ccaps=”” desc=”Lifetime premium membership / description and pricing details here.” ps=”paypal” lc=”” cc=”USD” dg=”0″ ns=”2″ custom=”mysite.com” ta=”0″ tp=”0″ tt=”D” ra=”100″ rp=”1″ rt=”L” rr=”BN” rrt=”” rra=”1″ image=”default” output=”button” /]

    2. Created a hook as follows to test the returned shipping address

    add_action(‘ws_plugin__s2member_before_paypal_notify’, ‘s2_grab_fields’);
    function s2_grab_fields($vars) {

    file_put_contents(‘test1.txt’, print_r($vars, true));

    }

    3. Setup IPN integration in my Paypal account.

    After doing the checkout, I get this array output to my output file as defined in the hook in step2.

    Array
    (
    [current_site] =>
    [current_blog] =>
    )

    The returned array doesn’t contain any data. The paypal checkout form asks for shipping address and the generated invoice however shows the Shipping Address.

    What am I doing wrong? Any help would be appreciated including links to some sample code to do this.

    https://www.ads-software.com/plugins/s2member/

Viewing 1 replies (of 1 total)
  • Looking to do the same thing right now.

    The solution I have now – until something easier comes around:

    Use Custom Registration/Profile Fields and add in there address, then request users to fill it in.

Viewing 1 replies (of 1 total)
  • The topic ‘S2Member Paypal Express Checkout get Shipping address’ is closed to new replies.