Thread Starter
guezs
(@guezs)
P.S.: Reading the forum, I placed the Stripe cus_ id in the subscription field manually. Not sure why this was not assigned to the subscription. Would it be the issue? In 11 hours the system will retry and we will see if it works. In the meantime, do you think it could be another issue?
-
This reply was modified 2 years, 2 months ago by
guezs.
Hi @guezs
The metakey used by this plugin is _wc_stripe_customer.
Would it be the issue?
Yes, based on the error message you shared the renewal failed because the Stripe customer ID was not populated in the renewal order’s meta. Make sure you update the renewal order’s meta and the subscription metadata with the Stripe customer ID.
If you were using another Stripe plugin before and it didn’t assign the customer ID, that could explain why it’s blank. This plugin always adds the Stripe customer ID to the subscription when it’s created.
Kind Regards
Thread Starter
guezs
(@guezs)
After setting the customer id and retry, we are getting this message:
The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first.
How can I attach the payment Method? Is this part of the plugin or Stripe?
Thread Starter
guezs
(@guezs)
Also… when you say “update the renewal order’s meta” , I’m not able to find the meta for the customer id.
Also… when you say “update the renewal order’s meta” , I’m not able to find the meta for the customer id.
That’s expected since you stated in a previous reply that the Stripe customer ID was missing from the subscription.
How can I attach the payment Method? Is this part of the plugin or Stripe?
A payment method is “attached” when a subscription is purchased on your site or a customer adds a payment method via their account.
It sounds like this customer’s payment method was deleted and that’s why the payment is now failing. You can copy the payment method ID and go to stripe.com and search for that payment method. You can see logs showing if the payment method was deleted.
Kind Regards
Thread Starter
guezs
(@guezs)
Thank you. We managed to update the profile and complete the renewal.