strangerstudios / paid-memberships-pro

WordPress membership plugin to restrict access to content and charge recurring subscriptions using Stripe, PayPal, and more. Fully open source. 100% GPL.
https://www.paidmembershipspro.com
Other
460 stars 357 forks source link

PayPal IPN customer billing metadata not getting populated into PMPro Order records #1156

Open afaqk9394 opened 4 years ago

afaqk9394 commented 4 years ago

Hi there

I have PayPal Standard setup (NO Woo) to process payments with PMPro, all working just fine including the IPNs (Paypal shows sent) and I have the current URL setup there as per PMPro settings (https://www.example.com/wp-admin/admin-ajax.php?action=ipnhandler).

Now to question. Looking at Paypal IPN data, it seems it contains customer and business names (Reference below), but I don’t see any of that IPN metadata getting populated into Order fields into PMPro with “success” status.. Is that expected? I wouldn't think so.

Reference IPN data (data obfuscated with lots of “blahs”): payment_cycle=Monthly&txn_type=recurring_payment_profile_created&last_name=&next_payment_date=03:00:00 Oct 20, 2019 PDT&residence_country=&initial_payment_amount=0.00&currency_code=USD&time_created=20:30:27 Oct 17, 2019 PDT&verify_sign=&period_type= Regular&payer_status=verified&tax=0.00&payer_email=blah-blah@blah.com&first_name=blah>&receiver_email=<blah@blah.com&payer_id=<####>&product_type=1&payer_business_name=&shipping=0.00&amount_per_cycle=59.00&profile_status=Active&charset=windows-1252&notify_version=3.9&amount=&outstanding_balance=0.00&recurring_payment_id=I-&product_name=&ipn_track_id=

dparker1005 commented 3 years ago

Hi @afaqk9394,

Looking through the IPN data that you provided, the customer and business names appear to be empty. If the payer's first and last names are present, we do try to include that information in the PMPro order. Can you please let us know where you would expect the payer_business_name to be stored in the PMPro order?

For reference, here is a link to where we try to save the first and last names: https://github.com/strangerstudios/paid-memberships-pro/blob/dfbce960f59ba418e0ee5d2dc4b966001f3a6bcc/services/ipnhandler.php#L752-L753