• For some reason when I try and test the Subscription Button that I setup on my webpage it will show the green success then right away show the large processing text and then instantly show the red Failed message modal that I wrote in the settings of the plugin. Is this normal test functionality or should it process just like a regular payment so that I can see how it works? It’s not working for me. I have the test keys properly implemented and everything setup properly for the Subscription Button. Help!

    Thanks,
    Kenny

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    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

    Thread Starter Why Not Advertising, LLC

    (@whyknott)

    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

    Thread Starter Why Not Advertising, LLC

    (@whyknott)

    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

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    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,

    Thread Starter Why Not Advertising, LLC

    (@whyknott)

    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?

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    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

    Thread Starter Why Not Advertising, LLC

    (@whyknott)

    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/

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    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

    Thread Starter Why Not Advertising, LLC

    (@whyknott)

    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

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Testing not working for Subscription Button Type’ is closed to new replies.