Address fields not saved correctly..??

Issue #91 closed
Drew Angell repo owner created an issue

The address fields POSTed by IPN are address_street, address_name, address_state, address_city, address_country, etc. It seems that our plugin is not saving these correctly, and instead using names like address1, address2, city, state, zip, country, etc.

This causes issues when people are using our forwarder, because the forwarder POSTs the data this same way, but 3rd party listeners are expecting to see the actual field names that IPN uses, so then those listeners don't update correctly when our forwarder passes data to them.

We need to look into this. I'm a little surprised I'm just now hearing about it, but it's important we get this corrected.

Comments (6)

  1. Drew Angell reporter

    Here's an example of the log provided by the user in the ticket showing the incorrect field names:

            (
            [cmd] => _cart
            [business] => tal@midimood.com
            [no_note] => 1
            [currency_code] => USD
            [charset] => utf-8
            [rm] => 2
            [upload] => 1
            [return] => https://www.midimood.com/checkout/order-received/1588?key=wc_591fdd5656171&utm_nooverride=1
            [cancel_return] => https://www.midimood.com/cart/?cancel_order=true&order=wc_591fdd5656171&order_id=1588&redirect&_wpnonce=608129f156
            [page_style] =>
            [image_url] =>
            [paymentaction] => sale
            [bn] => AngellEYE_SP_WooCommerce
            [invoice] => WC-1588
            [custom] => {"order_id":1588,"order_key":"wc_591fdd5656171"}
            [notify_url] => https://www.midimood.com/?AngellEYE_Paypal_Ipn_For_Wordpress&action=ipn_handler
            [first_name] => masakazu
            [last_name] => arisawa
            [address1] => bodaiji 381-18
            [address2] => noichi-cyo
            [city] => konan-shi
            [state] => Kochi
            [zip] => 781-5222
            [country] => JP
            [email] => stnwsqb2128@md.pikara.ne.jp
            [night_phone_b] => +81887563846
            [no_shipping] => 1
            [tax_cart] => 0.00
            [item_name_1] => uarp
            [quantity_1] => 1
            [amount_1] => 29
            [item_number_1] => harp
            )
    
  2. Tejas Mehta

    @angelleye May be they have sent wrong parameter name in the IPN request and we are storing just array response directly.

  3. Pp Dev

    @angelleye I have double checked and found that We are passing same date in PayPal forwarder request which we get from PayPal IPN response.

  4. Log in to comment