• Resolved royalmicer

    (@royalmicer)


    HI

    Almost all of my subscriptions are not automatically recharging, and it is showing the following in order notes:

    “Recurring payment for order failed. Reason: You passed an empty string for ‘payment_method’. We assume empty values are an attempt to unset a parameter; however ‘payment_method’ cannot be unset. You should remove ‘payment_method’ from your request or supply a non-empty value.”

    However, when i then manually go to the renewal order and click pay and select the customers card and pay, it is then able to successfully process the renewal charge.

    This is related to Stripe subscriptions

    Could you please tell me how to solve this issue

    • This topic was modified 4 months ago by royalmicer.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter royalmicer

    (@royalmicer)

    ..

    • This reply was modified 4 months ago by royalmicer.
    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @royalmicer

    That error message is indicating that the payment_method property is empty. The Stripe plugin stores the payment method ID in the order meta table with a meta key of _payment_method_token. Here is what I recommend you do to start troubleshooting.

    1. Go to the WooCommrce > Subscriptions table and click one of the affected subscriptions.
    2. On the Subscription Details page, click the pencil icon where the billing address is.
    3. Scroll down and confirm if the Stripe customer ID and payment method token fields are populated. The payment method ID field will likely be empty.
    4. You will need to populate the empty payment token field with the customer’s payment method ID.

    The Stripe plugin is designed to ensure the payment method ID is associated with the order during the checkout process. If that’s not happening, you likely have something interfering with that process.

    Do you have any custom code on your site that’s using the Stripe plugin filters?

    Kind Regards

    Thread Starter royalmicer

    (@royalmicer)

    Thank you for the prompt response.

    I checked a subscription which failed earlier, but which succeeded manually, and i can confirm the Stripe customer ID and payment method token fields were populated.

    I think i will need to wait for a renewal to fail again, so i can be then check if the fields were populated correctly, that way I can know for certain.

    No i dont have any custom code related to Stripe. plugin.

    Plugin Author Payment Plugins

    (@mrclayton)

    I think i will need to wait for a renewal to fail again, so i can be then check if the fields were populated correctly, that way I can know for certain.

    You could just find a subscription that’s due to process a renewal soon and check it’s data by going through the same steps outlined in my previous reply. You don’t need to wait until a renewal order is created.

    Thread Starter royalmicer

    (@royalmicer)

    Thanks for the sugggestion, i am busy going thru all active subscriptions now and you are right, i am finding many with empty Stripe fields, i am now updating those one by one.

    I noticed that some transactions the payment method starts with PM_ and others start with SCR_ — are both ok, and what is the difference?

    I also noticed that those transactions where customer selected browser payments, the payment method only show : Browser payments.

    Thanks for your help, appreciate your great service.

    Plugin Author Payment Plugins

    (@mrclayton)

    are both ok, and what is the difference?

    Payment method ID’s that have a prefix of src_ are from the old Stripe API and would indicate that payment method was saved using an older, deprecated API from Stripe. It’s most likely an old payment method. Were you using another Stripe plugin before this one?

    Thread Starter royalmicer

    (@royalmicer)

    Yes, i was using another stripe plugin last year.

    Would it be ok if i update the payment method of those subscriptions with SRC_ so they are all PM_ ( i will get the PM from the most recent renewal on Stripe

    Thanks

    • This reply was modified 4 months ago by royalmicer.
    Plugin Author Payment Plugins

    (@mrclayton)

    Would it be ok if i update the payment method of those subscriptions with SRC_ so they are all PM_ ( i will get the PM from the most recent renewal on Stripe

    Yes, as long as the pm_ prefixed payment method exists and is associated with the correct Stripe customer object then that is fine.

    Thread Starter royalmicer

    (@royalmicer)

    Great, thank you very much for your help.

    Enjoy what’s left of your weekend

    I am experiencing similar issues. I have attached a screenshot of what the subscription looks like when I open anyone. Would be happy with any help I can get

    EDIT: I use Cartflows to offer this subscription as an upsell, I suspect that affects saving the customers payment method because it isn’t a front-end purchase. I’m thinking this way because orders done on the front-end seems to capture stripe live payment method while those from the upsell doesn’t. How do I fix this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.