• Resolved duggy2010

    (@duggy2010)


    hi,

    I’ve been having an issue with Stripe Test Mode transactions being randomly rejected. I’ve used the Stripe test numbers (424242***) and they always worked in the past.

    Today I tried set the Stripe Plugin to Test mode and tested the connection was OK.

    I tried a couple of test transactions in Google Chrome and it immediately gave a card declined error. In Stripe Test Mode Admin, no transaction showed up.

    I then tried a transaction in Edge browser and the test transaction went through OK. It appeared in Stripe test admin also.

    Another test transaction failed in Edge (card declined error), so I tried again in Vivaldi browser. This time there was a different error:
    “No such paymentmethod: ‘pm_1JuzE6DIQFtS9lWALGDreB24’; a similar object exists in test mode, but a live mode key was used to make this request.”

    Trying again in Edge, the transaction was successful.

    Do you know what is going on here? The issue appears to be random.

    Thank you

    • This topic was modified 3 years ago by duggy2010.
Viewing 1 replies (of 1 total)
  • Carmin

    (@carminb)

    Hi @duggy2010,

    Thank you for reaching out.

    I’ve used the Stripe test numbers (424242***) and they always worked in the past.

    That is a strong indicator that something on your site has changed because this test card always works when test mode is enabled.

    I tried a couple of test transactions in Google Chrome and it immediately gave a card declined error. In Stripe Test Mode Admin, no transaction showed up.

    If you have live mode enabled and use a test card you will see a decline message. Ensure you have test mode enabled in the API Settings page.

    If you are certain test mode is enabled then the next place to look is your cache plugin if you’re using one. Some cache plugins are aggressive and will cache the html content of the checkout page which includes your Stripe publishable key. So you may have test mode enabled in the plugins settings, but the cache renders the live mode publishable key.

    That would explain the error message “No such paymentmethod: ‘pm_1JuzE6DIQFtS9lWALGDreB24’; a similar object exists in test mode, but a live mode key was used to make this request.”

    Your checkout page used a a cached live publishable key, but the PHP backend tried to process in test mode since that’s what you have enabled in the API Settings page.

    Kind Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Card randomly rejected in Test mode’ is closed to new replies.