Home › Forums › Stripe Payments Plugin › Can't Publish Subscription Plan
- This topic has 6 replies, 2 voices, and was last updated 6 years, 2 months ago by Admin.
-
AuthorPosts
-
September 6, 2018 at 4:04 am #1408thewedgeParticipant
I went through your how to setup a subscription plan/product. I made a subscription Plan, but the only option is to save as draft, or pending review. You can’t publish the subscription, which means you can’t select the plan in the product area. I tried to do quick edit and select publish, but every time I save it goes back to draft. You have an issue here.
September 6, 2018 at 5:58 am #1409AdminKeymasterI just tested this right now and works fine. Are you missing a value in the “Title” field of the subscription plan?
It gives you an error if you do not enter a title and try to hit the “Create Plan” button. However, some wordpress sites may have a lot of warnings in the admin interface (from other plugins). So you can miss the error our plugin shows due to all the other warning notices already there.
September 6, 2018 at 3:26 pm #1410thewedgeParticipantThe error was the api. I thought I had to do that, but didn’t know how until I reread your how to. It works now. WordPress really should change their error to a red box with white letters and the word ERROR large so you see it. What they have can be missed very easily. Even a pink box like how Joomla does it would be helpful.
September 6, 2018 at 7:00 pm #1411thewedgeParticipantI have another problem. When I create the subscription and select Live mode it says it published it. When I select the plan in the product and save it, apply the short code, on the page it tells me that the Error: product ID is invalid. When I go back to the subscription, and update it, it says that I used a live subscription, but a test mode api was used. But the live was selected. I then went to settings and checked the box that put it in live mode. I went back through this scenario once again, but it keeps doing the same thing. I even removed the test api, but it still fails. Giving up.
September 6, 2018 at 7:05 pm #1412thewedgeParticipantWhen I get rid of the test api it says this
No API key provided. (HINT: set your API key using “Stripe::setApiKey(<API-KEY>)”. You can generate API keys from the Stripe web interface. See https://stripe.com/api for details, or email [email protected] if you have any questions.
September 7, 2018 at 12:02 am #1414thewedgeParticipantI quite my browser to flush out any retained information and tried again. The subscriptions took this time, but can you look into this to see if it happens to you. I don’t want the client to make things in the future and have issues.
September 7, 2018 at 7:14 am #1416AdminKeymasterYou should put both your test and live API keys in the settings and save it. You can get all these details in your Stripe account.
With the subscription plans, Stripe doesn’t let you switch an existing subscription plan between test and live. If you create a subscription plan for test mode, that is only available in test mode. If you create a subscription plan for live mode, it will be available in live mode only.
-
AuthorPosts
- You must be logged in to reply to this topic.