• Resolved Leinad4Mind

    (@leinad4mind)


    So, all my users that bought via recurring subscription that cancells at paypal (Im using PaypalExpress gateway) are not automatically cancel on my website…

    I waited 15 days and they are still active :/

    It must be a bug on PMPro!

    I do receive the paypal email about the recurring subscription being cancelled.
    And I’ve the debug email of PMPro activated and I do receive from WordPress that the user cancelled at the gateway. So why dont PMPro use that information that receive from the IPN to cancell the membership?!

    IPN Log:

    Logged On: 04/29/2018 08:54:05
    Array
    (
    [payment_cycle] => Yearly
    [txn_type] => recurring_payment_failed
    [last_name] => ***
    [next_payment_date] => 03:00:00 Apr 19, 2019 PDT
    [residence_country] => US
    [initial_payment_amount] => ***
    [currency_code] => USD
    [time_created] => 15:22:57 Apr 19, 2017 PDT
    [verify_sign] => AcpI32-zQS0Acdz-2WWgJyK******aVmkvvcyxUKW2lxaHibHxpEAZG
    [period_type] => Regular
    [payer_status] => unverified
    [tax] => 0.00
    [payer_email] => ***@yahoo.com
    [first_name] => ***
    [receiver_email] => ***
    [payer_id] => 9DHC6NJLD9***
    [product_type] => 1
    [shipping] => 0.00
    [amount_per_cycle] => ***
    [profile_status] => Active
    [charset] => windows-1252
    [notify_version] => 3.9
    [amount] => ***
    [outstanding_balance] => ***
    [recurring_payment_id] => I-KK***
    [product_name] => ***
    [ipn_track_id] => bff09c432c***
    )

    Other:

    Logged On: 04/25/2018 07:20:30
    Array
    (
    [payment_cycle] => Yearly
    [txn_type] => recurring_payment_skipped
    [last_name] => ***
    [next_payment_date] => 03:00:00 Apr 30, 2018 PDT
    [residence_country] => CA
    [initial_payment_amount] => ***
    [currency_code] => USD
    [time_created] => 15:01:54 Apr 20, 2017 PDT
    [verify_sign] => AG6JuJVhp9j3Yi6hoj8sbyk8-******.9GCtm7Cq6tIJVtnQ2r5
    [period_type] => Regular
    [payer_status] => unverified
    [tax] => 0.00
    [payer_email] => ***@gmail.com
    [first_name] => ***
    [receiver_email] => ***
    [payer_id] => RJFPVDTF8F***
    [product_type] => 1
    [shipping] => 0.00
    [amount_per_cycle] => ***
    [profile_status] => Active
    [charset] => windows-1252
    [notify_version] => 3.9
    [amount] => ***
    [outstanding_balance] => 0.00
    [recurring_payment_id] => I-NKT2K16BF***
    [product_name] => Renewal
    [ipn_track_id] => 0d4afb8439***
    )

    This is my customization file, maybe some function is creating the issue:
    https://pastebin.com/b3XnYjJg

    • This topic was modified 4 years, 5 months ago by Leinad4Mind.
Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @leinad4mind,

    Thank you for your patience.

    If a user cancels within PayPal but it does not cancel their subscription within your WordPress website this is most likely an issue with your IPN.

    Could you please follow this guide – https://www.paidmembershipspro.com/troubleshooting-paypal-ipn-issues-with-paypal-express-paypal-standard-or-paypal-website-payments-pro/

    And share the log files with us?

    Thread Starter Leinad4Mind

    (@leinad4mind)

    How can I share this data with you guys privately?

    About the link you share:

    “1. By adding the line below to your wp-config.php, you will tell PMPro to email the WP admin user whenever the IPN URL is loaded.”
    Yup, I did this, thats why Im receiving all IPN debug messages, the strange is to receive email about this and the IPN may not be well configured?

    “2. PayPal saves a history of IPN messages and information about if the message went through or if there were any errors in the “PayPal IPN History”.”
    I dont have errors on IPN history :/

    “1. Your IPN URL is being cached by your WordPress install or your host.”
    Not from this. I get different timestamp for each refresh.

    “4. Your business email address is different in your PayPal and PMPro settings.”
    I don’t think so, I dont get any message about “receiver_email (N/A) and business email (N/A) did not match (email)” on my logs, since its the same email.

    • This reply was modified 4 years, 5 months ago by Leinad4Mind.
    • This reply was modified 4 years, 5 months ago by Leinad4Mind.
    Thread Starter Leinad4Mind

    (@leinad4mind)

    I received this email from paypal:

    “We’ve sent your customer an email asking them to make sure their payment information is correct.

    If you have any questions, call us toll-free at 1-888-221-1161

    The automatic payment from *** *** has failed 1 times. As a result, we will not try to process this automatic payment again. You should contact your buyer to collect the outstanding balance.”

    And as you can see in my pastbin above I’ve:

    /* Cancel subscriptions when a recurring payment fails. As of PMPro version 1.5.9.1, failed payments reported via Stripe webhook, PayPal IPN handler, or Authorize.net silent post kick off the pmpro_subscription_payment_failed action.
       Also make sure to edit the default billing_failure.html email to mention that users are cancelled upon failure. To do so, copy paid-memberships-pro/email/billing_failure.html into themes/{active theme}/paid-memberships-pro/email/ and edit the text to suit your need.
       Note: This cancels on the first failure.
    */
    function my_pmpro_subscription_payment_failed($order)
    {
        //cancel the membership
        pmpro_changeMembershipLevel(0, $order->user_id);
    }
    add_action("pmpro_subscription_payment_failed", "my_pmpro_subscription_payment_failed");

    And this should cancel his membership, but it isnt doing nothing :/

    Thread Starter Leinad4Mind

    (@leinad4mind)

    New information!

    I’ve saw on paypal that I’ve:

    This profile will be suspended after: No limit failure

    How can I change this so the user when purchase the plan as recurring subscription, it would be saved on paypal as “0” So at the 1st failed attempt paypal would automatically cancelled.

    Because some users cancelled there subscriptions or doesnt have money and when the subscriptions fails it tries 1 time and thats it. After that I need to solve this problem manually on paypal, and cancel their account. But If I could change that “no limit failure” that would solve one of my problems!

    • This reply was modified 4 years, 4 months ago by Leinad4Mind.
    Plugin Author Andrew Lima

    (@andrewza)

    You are able to use the Failed Payment Limit Add On to achieve this – https://www.paidmembershipspro.com/add-ons/failed-payment-limit/

    This would allow you to cancel the users account immediately as soon as a payment fails.

    Thread Starter Leinad4Mind

    (@leinad4mind)

    Thank you! I’ll let you know if that works.

    Plugin Author Andrew Lima

    (@andrewza)

    Great! Please keep me posted.

    Thread Starter Leinad4Mind

    (@leinad4mind)

    Bad news… It didnt work. Next payment subscription still kept with limit failure unlimited.

    I installed the plugin, manually edited define(‘PMPRO_FAILED_PAYMENT_LIMIT’, 3); to 1

    But in paypal after user bought a subscription it still not appear 1.

    Check image: https://i.imgur.com/BzQzgWy.png

    • This reply was modified 4 years, 4 months ago by Leinad4Mind.
    • This reply was modified 4 years, 4 months ago by Leinad4Mind.
    Thread Starter Leinad4Mind

    (@leinad4mind)

    I’m using php 7.1.17 is that causing a problem?

    Plugin Author Andrew Lima

    (@andrewza)

    This shouldn’t be a problem @leinad4mind, I have added this to our development schedule for further testing to see if we can replicate the issue on our end.

    I’m really sorry for the inconvenience caused by this.

    Thank you for your patience and understanding.

    I am having the same issue here.

    Any news about how to solve this problem?

    Thread Starter Leinad4Mind

    (@leinad4mind)

    I still have this problem Jorge. :/
    Its a bug for sure.

    This problem persists.

    What would be the solution?

    I have this problem too :/
    Is there a solution yet?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Bug When user Cancell Recurring Subscription at Paypal’ is closed to new replies.