ProSites & Stripe Payment Shifted a few hours later

OK so this is really weird. I have the most current version of ProSites at the moment but it seems like all of the subscription payment times have shifted an hour later that usual which is resulting in the expiration email being sent out to clients who have had account for anywhere from 2 to 8 months.

What is up with that?

HELP!!!

    NerdStuds

    I also have another problem...

    Clients can not cancel membership it throws a warning saying something went wrong and to contact support. Then when I try to manually cancel it from the WP Subscriptions dashboard I get this warning...

    Unrecognized request URL (GET: /v1/customers/cus_6pyZcpy5SDxnSL/subscriptions/). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.

    NerdStuds

    So this shows a subscription run correct for August & September and the in October you see it go bad where "Pro Site status has been withdrawn"

    2015-10-01 3:46:53 pm Stripe webhook "charge.succeeded" received: Customer ID: cus_6te7dioCNftLC8
    2015-10-01 3:46:48 pm Payment receipt email sent to...
    2015-10-01 3:46:47 pm Pro Site status expiration extended until November 1, 2015.
    2015-10-01 3:46:46 pm Stripe webhook "invoice.payment_succeeded" received: The $25 payment was successfully received. Date: "October 1, 2015", Charge ID "ch_16rDwtArjTOGayDsF3x9hkkH"
    2015-10-01 3:46:45 pm Stripe webhook "invoice.updated" received: Customer ID: cus_6te7dioCNftLC8
    2015-10-01 2:43:48 pm Expired email sent to...
    2015-10-01 2:43:47 pm Pro Site status has been withdrawn.

    2015-10-01 1:44:02 pm Stripe webhook "invoice.created" received: Customer ID: cus_6te7dioCNftLC8
    2015-10-01 1:43:40 pm Stripe webhook "customer.subscription.updated" received. The customer's subscription was successfully updated to MCP Unlimited: $25 every 1 month.

    2015-09-01 1:04:46 pm Payment receipt email sent to...
    2015-09-01 1:04:45 pm Pro Site status expiration extended until October 1, 2015.
    2015-09-01 1:04:44 pm Stripe webhook "invoice.payment_succeeded" received: The $25 payment was successfully received. Date: "September 1, 2015", Charge ID "ch_16gIqMArjTOGayDsV85QSDgi"
    2015-09-01 1:04:18 pm Stripe webhook "invoice.updated" received: Customer ID: cus_6te7dioCNftLC8
    2015-09-01 1:02:26 pm Stripe webhook "charge.succeeded" received: Customer ID: cus_6te7dioCNftLC8
    2015-09-01 11:39:14 am Stripe webhook "customer.subscription.updated" received. The customer's subscription was successfully updated to MCP Unlimited: $25 every 1 month.
    2015-09-01 11:39:13 am Stripe webhook "invoice.created" received: Customer ID: cus_6te7dioCNftLC8

    2015-08-31 6:58:05 am Stripe webhook "customer.subscription.trial_will_end" received: Customer ID: cus_6te7dioCNftLC8
    2015-08-31 6:51:47 am Stripe webhook "customer.card.created" received: Customer ID: cus_6te7dioCNftLC8
    2015-08-31 6:51:46 am Stripe webhook "invoice.payment_succeeded" received: The $0 payment was successfully received. Date: "August 31, 2015", Charge ID "in_16fqp8ArjTOGayDshlcCcYY2"
    2015-08-31 6:51:45 am Payment receipt email sent to...
    2015-08-31 6:51:44 am Stripe webhook "customer.subscription.created" received: Customer successfully subscribed to MCP Unlimited: $25 every 1 month.
    2015-08-31 6:51:42 am User modifying subscription via CC: Plan changed to (MCP Unlimited: $25 USD each month) - cus_6te7dioCNftLC8
    2015-08-28 11:38:04 am Pro Site status expiration extended until September 1, 2015.

    Sajid

    Hi @Daniel

    Hope you are doing good today

    This error mostly occurred when you change levels and change plans period selections. It should not happened automatically, there must be some change you made before its started happening.

    Did you installed updated any plugin ?

    Changed deleted the levels or removed the periods ?

    I can see you have enabled support access but its seems to be expired. Please revoke access and grant again so I take a closer look.

    Take care and have a nice day

    Cheers, Sajid

    NerdStuds

    Support Access Shows to be active until October 5th...

    All I have done is update from 3.4.7.2 to 3.5.1.3, I only have 1 level with 2 options, Monthly or Yearly.

    Before the update the issue of Expiration email being triggered started all by it's self, I had not touch any Pro Site settings. But people had no problem canceling.

    After the updated the issue of Expiration email being trigger persists and the new issue of not being able to cancel was created.

    I have created an account and subscribed and unsubscribe back and forth successfully but it seems that all existing accounts can not unsubscribe.

    SO I have 2 issues going on here, please help!
    Daniel

    NerdStuds

    This is the latest account. To me it looks like the events to stripe are being sent out of order? Is there a way you can immediately stop the triggering of the expired email please?

    2015-10-02 3:40:31 am Pro Site status expiration extended until November 2, 2015.
    2015-10-02 3:40:30 am Stripe webhook "invoice.payment_succeeded" received: The $25 payment was successfully received. Date: "October 2, 2015", Charge ID "ch_16rP5QArjTOGayDssmZIjsfK"
    2015-10-02 3:40:23 am Stripe webhook "invoice.updated" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-10-02 2:41:30 am Expired email sent to...
    2015-10-02 2:39:39 am Stripe webhook "customer.subscription.updated" received. The customer's subscription was successfully updated to MCP Unlimited: $25 every 1 month.
    2015-10-02 2:39:38 am Stripe webhook "invoice.created" received: Customer ID: cus_6LrilT8ocA8fPo

    2015-09-02 4:27:46 am Stripe webhook "invoice.updated" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-09-02 4:27:45 am Stripe webhook "charge.succeeded" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-09-02 4:27:44 am Payment receipt email sent to...
    2015-09-02 4:27:43 am Pro Site status expiration extended until October 2, 2015.
    2015-09-02 4:27:42 am Stripe webhook "invoice.payment_succeeded" received: The $25 payment was successfully received. Date: "September 2, 2015", Charge ID "ch_16gXWoArjTOGayDsrjwC37Fu"
    2015-09-02 2:39:31 am Stripe webhook "invoice.created" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-09-02 2:39:30 am Stripe webhook "customer.subscription.updated" received. The customer's subscription was successfully updated to MCP Unlimited: $25 every 1 month.

    2015-08-02 3:43:24 am Stripe webhook "charge.succeeded" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-08-02 3:43:23 am Stripe webhook "invoice.updated" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-08-02 3:43:22 am Payment receipt email sent to...
    2015-08-02 3:43:21 am Pro Site status expiration extended until September 2, 2015.
    2015-08-02 3:43:20 am Stripe webhook "invoice.payment_succeeded" received: The $25 payment was successfully received. Date: "August 2, 2015", Charge ID "ch_16VI3uArjTOGayDsRJrlJzGO"
    2015-08-02 2:40:56 am Stripe webhook "customer.subscription.updated" received. The customer's subscription was successfully updated to MCP Unlimited: $25 every 1 month.
    2015-08-02 2:40:54 am Stripe webhook "invoice.created" received: Customer ID: cus_6LrilT8ocA8fPo

    2015-07-02 3:44:17 am Payment receipt email sent to...
    2015-07-02 3:44:16 am Pro Site status expiration extended until August 2, 2015.
    2015-07-02 3:44:15 am Stripe webhook "invoice.payment_succeeded" received: The $25 payment was successfully received. Date: "July 2, 2015", Charge ID "ch_16K3IiArjTOGayDs65QfiQeu"
    2015-07-02 3:44:12 am Stripe webhook "charge.succeeded" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-07-02 3:44:10 am Stripe webhook "invoice.updated" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-07-02 2:41:39 am Stripe webhook "invoice.created" received: Customer ID: cus_6LrilT8ocA8fPo
    2015-07-02 2:41:36 am Stripe webhook "customer.subscription.updated" received. The customer's subscription was successfully updated to MCP Unlimited: $25 every 1 month.

    Sajid

    Hi @Daniel

    Hope you are doing good today

    You can disable expire email by editing the code for now while we are looking at it. Go to wp-content/plugins/pro-sites/ open up pro-sites.php fine below code on nearly line number 1502 and 1504.

    wp_mail( $email, $e['subject'], nl2br( $e['msg'] ), implode( "\r\n", $mail_headers ) );
    
    $this->log_action( $blog_id, sprintf( __( 'Expired email sent to %s', 'psts' ), $email ) );

    Replace above code with following:

    /*wp_mail( $email, $e['subject'], nl2br( $e['msg'] ), implode( "\r\n", $mail_headers ) );
    
    $this->log_action( $blog_id, sprintf( __( 'Expired email sent to %s', 'psts' ), $email ) );*/

    Hope it helps. I am flagging developer of this plugin for their feedback on this matter as well.

    Take care and have a nice day

    Cheers, Sajid

    NerdStuds

    Hey @Sajid

    Ok thank you I got that bit of code commented out. Please let me know as soon as you know something. Right now we still have accounts that are being flagged as expired and although Stripe will eventually process the payment and mark them back as not expired, it's usually about a 3 hour window they their site is down so we have to go in and manually process the payment so that the site it not disabled.

    Thanks,
    Daniel

    NerdStuds

    Hey @Sajid,

    Here is where we are at now...

    A. New Subscribers
    1. They are able to subscribe to a plan.
    2. They are also able to unsubscribe themselves via the admin.
    3. I am also able to unsubscribe them via the our network admin.

    B. Old Subscriptions
    1. When the stripe invoice is created their Subscription status with us is being set to Expired which does the following...
    A. Deactivates their account front end and back end.
    B. Sends out a expiration email - which I have disabled via the comment above.
    C. Bills them about 2 hours after the expiration hits and then reactivates their account. So this basically leaves them about a 2 hour window of account deactivation.
    D. We are manually processing the payment on through Stripe which does trigger the account reactivation in Pro Sites so at least that part is talking correctly.
    2. They can not unsubscribe via the admin.
    3. We can not unsubscribe them via the admin, so we have to cancel the subscription through stripe BUT when looking at the logs in the network admin stripe is not talking to pro sites with this action.

    I'm really hoping that someone is working on this through the weekend!
    Daniel

    NerdStuds

    Ok so this issue has just started back up again. For whatever reason it looks like the way the actions are kicking out to Stripe of off again. It's expiring the site then kicking out the expiration email and then renewing the monthly account. See below for the way this thing is kicking out. One thing I noticed is that this issue came up after I went through the "Upgrade Network" function that wordpress multisite requires after some core updates. I think that must have something to do with this issue. For now I have disable the expiration email in the code.

    ProSites Version 3.5.1.9
    WordPress Version Latest

    PLEASE HELP!
    Daniel

    2016-02-23 7:42:13 pm Pro Site status expiration extended until March 24, 2016.
    2016-02-23 7:42:12 pm Payment receipt email sent to email@email.com
    2016-02-23 7:41:42 pm Stripe webhook "invoice.updated" received: Customer ID: cus_6HqnkUlxxTlH1g
    2016-02-23 7:24:49 pm User modifying subscription via CC: Plan changed to (MyChampionPage MCP Unlimited: $25 USD each month) - cus_6HqnkUlxxTlH1g
    2016-02-23 7:14:15 pm Expired email sent to email@email.com
    2016-02-23 7:14:14 pm Pro Site status has been withdrawn.
    2016-02-23 6:03:29 pm Stripe webhook "customer.subscription.updated" received. The customer's subscription was successfully updated to MyChampionPage MCP Unlimited: $25 every 1 month.
    2016-02-23 6:03:26 pm Stripe webhook "invoice.created" received: Customer ID: cus_6HqnkUlxxTlH1g