I have the exact same issue. I use code like this:
[wp_stripe_checkout_v3 price=”price_UY9NozbEy7T3PUlk” button_text=”Pay Now” mode=”subscription”]
And the button does nothing.
Have followed all instructions to the T.
-
This reply was modified 5 years, 4 months ago by
bde123.
@dimuthu009, Stripe is showing this error:
No such plan: ‘price_*****’; a similar object exists in live mode, but a test mode key was used to make this request.
@bde123, Please provide a link to the page in question so I can take a look.
My button also does nothing. I click it, it flickers up with a “waiting for stripe.com”, then nothing.
https://guided-thought.com/phronesis-accelerator/
@williamtbatten, You need to provide a “success_url” in the shortcode. Alternatively you can do it in the settings.
It already had that in the settings – without it, it wouldn’t even display the button. I just added the shortcode too for good measure – no change.
@williamtbatten, Please copy and paste the exact shortcode you are using.
[wp_stripe_checkout_v3 price=”price_1I4WlwFErHrpDcQM6GyALWwi” success_url=”https://guided-thought.com/” mode=”subscription” button_text=”Subscribe – AU$54 / month “]
@williamtbatten, Thanks. The shortcode looks broken. Please copy it from here,
[wp_stripe_checkout_v3 price="price_1I4WlwFErHrpDcQM6GyALWwi" success_url="https://guided-thought.com/" mode="subscription" button_text="Subscribe – AU$54 / month"]
If you already have the same URL in the settings there is no need to add it to the shortcode.
[wp_stripe_checkout_v3 price="price_1I4WlwFErHrpDcQM6GyALWwi" mode="subscription" button_text="Subscribe – AU$54 / month"]
This forum broke the shortcode – that’s not how it appears in my page. The shortcode is as you displayed it.
Anyway, I copied your second shortcode over to my site just in case. Still nothing.
@williamtbatten, Your success URL appears as ‘/’ in the button. Is this what you have entered in the settings?
No – that’s strange. I entered https://guided-thought.com/
@williamtbatten, I’m not sure what is happening. Something on your site must be breaking the button HTML code. There is an error on that page (not from the plugin or the button). I have also noticed the button code is minified. So you may have a plugin to minify HTML content.
That seemed to help, but now there’s a new problem. I disabled my HTML minifier and now I get this error:
IntegrationError: No such plan: ‘price_1I4WlwFErHrpDcQM6GyALWwi’; a similar object exists in live mode, but a test mode key was used to make this request.
I’m not in test mode. I even deleted the test keys and it’s still saying that.
@williamtbatten, There is no need to delete your API keys. You simply enable/disable the test mode checkbox in the settings.