Actually I have found this: https://stackoverflow.com/a/45220168 and it almost works, as I can display the meta in the order email and it will display an estimated delivery for in stock and backorder products. The only problem is, that I have a custom stock status called "bestillingsvare", and want to display an estimated delivery for this also.
Do you know any way of tweaking the code a bit, so I can display an estimated delivery based on the "bestillingsvare" status.
Yes, the problem happens when the customer want to update the card info, not when they want to subscribe for the first time. It only happens when a customer tries to update their card, the card gets updated, but isn't subscribed to a Pro subscription.
The only caching, is Redis cache. I have tried disabling Redis, but it doesn't do anything on my end.
Hi Ivan, thank you for your reply.
As I mentioned earlier, the problem only seems to happen in live mode. I have just (once again) tried creating a new blog, upgrading it, canceling the subscription, and then tried to resubscribe, but I can't.
If I try to resubscribe, the customer in stripe only gets updated, and not subscribed again.
I have once again attached an image from stripe, showing the exact thing I have mentioned earlier.
Yes, it usually works for a new site where the action hasn't been cached yet. If you sign up for a new site, and then upgrade the site it usually works. But if you try upgrading another site after the first one, then it won't work.
Thank you for the fix, our users haven't reported issues regarding this since then. Could you please show me, where you've made the changes?
Have just tried, problem still there.
In the debug log, I have found this: [30-Oct-2017 21:09:13 UTC] Error in /wp-content/plugins/pro-sites/pro-sites-files/gateways/gateway-stripe.php at line 2810No upcoming invoices for customer: cus_B7u9TX1mNK3xbQ
The cus_B7u9TX1mNK3xbQ matches the customer for my test account with email: [email protected]
The credit card gets updated, but the subscription is not renewed.
I have attached the debug.log
I have just tried again on our test blog in live mode, and it still doesn't work. I try to upgrade with a new card, and the customer gets updated, but nothing happens to the blog, and the upgrade page just refresh and says "Your subscription has been cancelled".
I have attached an image, displayed that the users card is updated, but nothing happens to the subscription.