• Resolved luca74

    (@luca74)


    Hi,

    I tried to open a chat also on your site: impossible!
    So I try to contact here.
    We have the last version of the plugin Stripe payments, but it’s not working anymore, when we charge a customer, we receive an error from Stripe: error 402 “Cannot charge a customer that has no active card”

    the card is now saved as “payment_method” (pm_****) in stripe, but in the previous version of the plugin the card was saved as “source” (src_***).

    Is it change something? Why the card is saved with another “id” in stripe?

    Thank you

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

Viewing 1 replies (of 1 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @luca74

    I understand that you’re encountering a problem with the Stripe Payments plugin, where you’re receiving a 402 error from Stripe stating, “Cannot charge a customer that has no active card“. I realize how frustrating this can be, and I’m here to help.

    You’ve mentioned that the card is now saved as "payment_method" (pm_****) in Stripe, but in the previous version of the plugin, the card was saved as "source" (src_***). This change is due to an update in the Stripe API.

    Stripe has transitioned from using the “source” object (src_***) to the “payment_method” object (pm_****). This is a more modern way to handle payments and provides additional features, such as handling different payment types more consistently and providing better error handling.

    However, the error you’re encountering suggests that the card information is not being correctly linked to the customer in Stripe. It might be that the card is being saved as a payment method, but it’s not being attached to the customer’s profile in Stripe.

    Here are a few steps to troubleshoot this issue:

    • Check the customer’s profile in your Stripe dashboard to see if the card is listed as an active payment method.
    • Ensure that your Stripe plugin is correctly configured to save card details. You can find this in WooCommerce > Settings > Payments > Stripe.
    • If the problem persists, try to disable all other plugins except WooCommerce and Stripe to see if there’s a conflict. You can find a more detailed explanation of how to conduct a conflict test here.

    If none of these steps resolve the issue, please get back to us with the following:

    • System Status Report: navigate to WooCommerce → Status. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here. This will help us investigate further and provide you with a more accurate solution.

    Thank you for your patience and understanding.

Viewing 1 replies (of 1 total)
  • The topic ‘Stripe Err 402’ is closed to new replies.