• Resolved gvc2076

    (@gvc2076)


    Hi,

    Test is working but get the message below for live, on Stripe.

    I have created a PLAN-ID called “usd12w2” in LIVE so not sure why it give me that message. Any advice appreciated.

    Thanks.

    {
    “customer”: “cus_AtCttqLfsS4GCc”,
    “plan”: “usd12w2”,
    “metadata”: {
    “description”: “Twelve Week Plan”
    }
    }

    {
    “error”: {
    “type”: “invalid_request_error”,
    “message”: “No such customer: cus_AtCttqLfsS4GCc; a similar object exists in test mode, but a live mode key was used to make this request.”,
    “param”: “id”
    }
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have exactly the same issue. No payments are possible now but was working before. I don’t get it.

    This is what I get, this is for a subscription

    {
    “error”: {
    “type”: “invalid_request_error”,
    “message”: “No such customer: cus_AfMXrEKbusbUE4”,
    “param”: “id”
    }
    }

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @gvc2076, @pachakech,

    That could happen if you do a live transaction with an email address you previously used in testing mode. Your user exists in your WordPress admin but not anymore in Stripe account, creating a conflict.

    I realized that was a recurring error happening to Direct Stripe users so I decided to stop registering Stripe ID in WordPress admin when using testing mode. That way when you switch to live mode the customer can be created without errors.

    That will work in the future but as your users already have a stripe ID, please delete the Stripe ID field from the user edition page. That should fix the issue.

    Please upgrade to Direct Stripe version 2.0.5 so that this error won’t happen again and let me know if that fixed your issue.

    Thanks again for using Direct Stripe.

    Best regards,

    Thread Starter gvc2076

    (@gvc2076)

    Thanks Nicolas.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stripe Error Message – a similar object exists in test mode, but a live mode key’ is closed to new replies.