Hello @whyknott,
Thank you for using Direct Stripe.
The process you describe is normal, the first green check sign indicates the data entered is approved and the transaction start processing, then the transaction fails.
In order to find out why it fails, you can :
– read the logs from the Stripe dashboard ( turn the “view test data” switcher on, click on developers -> logs, open the failed transaction and read the body response ).
– or leave the Failure textarea option empty, this will display the error code sent back from Stripe with the reason of the failure.
Let me know if you need help interpreting the error.
Best wishes,
Nico
Thanks Nicolas, How do I create a subscription product at Stripe? It said that no product ID exists when I removed my failure text option in settings. I’m new to Stripe and I’m unsure how to create a subscription product at Stripe.com Do you have a URL or help doc on that? I did reach out to Stripe support but they haven’t helped me yet.
Thanks,
Kenny
Hi Nicolas,
Latest update…I figured out how to make a product at Stripe.com it was actually quite easy under the Billing section of the dashboard it was easy to setup. Anyway, I tested the connection again and received this failure message:
No such plan: [my plan id here for security reasons]; a similar object exists in live mode, but a test mode key was used to make this request.
Not sure how to use the plan in test mode or is this just a positiive indication that the product works and I should let it go live at this point?????
Thanks,
Kenny
Hello @whyknott,
From your Stripe Dashboard :
– Go to Billing -> Products and click Create Product
– Add a pricing plan to that product
– Paste the Pricing Plan ID in the Direct Stripe button settings
You will find more about Stripe Billing at https://stripe.com/us/billing
Let me know if that helped.
Best wishes,
says I need to upgrade to the latest API and the button is greyed out at Stripe.com very weird. So the product ID is different than the pricing plan ID?
Hello @whyknott,
Thanks for the update, make sure that testing data is created in “test” version, in the Stripe dashboard menu there is “View test data” option that needs to be enabled using a toggle slide.
During tests use a product 6> pricing plan created for tests and make sure to use a live p
Product -> Pricing plan for buttons used in production.
Updating the API can only be made in live mode, and yes the Product ID is not the same as the Pricing Plan ID.
Let me know how that goes.
Best wishes,
Nico
It worked! Sorry I didn’t realize I had to switch on the “Viewing Test Data” toggle in Stripe and then create an entirely separate test product with pricing ID. It’s all good now. One final question….How do I update the subject in the autoresponse emails to say my brand name other than “WordPress”
I figured out with code in function.php how to change Name from Default WordPress using this article. Did want to use the plugin they mentioned because it was outdated: https://www.wpbeginner.com/plugins/how-to-change-sender-name-in-outgoing-wordpress-email/
Hello @whyknott,
I’m glad it worked and you found how to change the default sent from email address that Direct Stripe uses in the emails.
Let me know if you have any other concern regarding Direct Stripe.
Best wishes,
Nico
Hi Nicolas,
I have a need to have two pricing plans within ONE subscription. Will I need to create a second button? Or can I specify two plan IDs in the Plan ID field for ONE button? Was hoping I wouldn’t have to have two buttons on my landing page. One is monthly billing subscription and the other is paying annually.
Thanks,
Kenny
Hello @whyknott,
Direct Stripe is meant to work at a button level ( that triggers the default Stripe modal form ).
I think you mean to pre-process the Stripe transaction with a custom form that would set the pricing plan based on the user’s choice.
Custom forms are not a feature of Direct Stripe. In order to have only one button displayed, that would require setting a select field that displays the correct payment button.
That also means that two Direct Stripe buttons are needed and I think it is easier to display both buttons next to corresponding plans explanation.
Best wishes,
Nico