• Resolved denialdesign

    (@denialdesign)


    I’ve set up my Products in Stripe and my Stripe SCA Subscription buttons in wordpress but I’m getting a fatal error when I click on the button.
    Fatal error! Payment with ref_id xxxxxxxxxxxxx can’t be found

    I’ve followed the instructions in the documentation, set up the webhooks, etc.
    However I don’t see a plan_ id in Stripe, only a prod_ and price_
    I have put the price_ id in the plan field on the button creator.

    The screenshots in your documentation appear to be out of date as they do not match the Stripe website interface.

    When I do a request through the dashboard I get this data:
    Request
    POST /v1/prices
    200
    Time
    14/08/2020, 17:11:13
    IP address
    xx.xx.xx.xx (from server at xx.xx.xx.xx)
    Version
    2020-03-02 (latest)
    Source
    Dashboard – [email protected]
    Related
    product – prod_Hpl01gz7bXA1Qq
    plan – price_1HG5UrJuXO2ijtaCYqscMQPa
    Origin
    https://dashboard.stripe.com/

    As you can see from the request the “plan” is now price_

    How can I find the plan id?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    I’ve set up my Products in Stripe and my Stripe SCA Subscription buttons in wordpress

    Can you elaborate more explaining what you mean by the above comment?

    Thank you

    Thread Starter denialdesign

    (@denialdesign)

    I’m not sure I can!
    I’ve set up the Stripe SCA Subscription buttons in Simple Membership following your instructions.
    I’ve set up my subscription products in Stripe.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    I’ve set up my subscription products in Stripe.

    Are you saying that you have setup your product in your Stripe account?

    Thread Starter denialdesign

    (@denialdesign)

    Yes!

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, the subscription product should be setup in your site. If not, the plugin will not know what they are subscribing for.

    Kind regards

    Thread Starter denialdesign

    (@denialdesign)

    Your documentation says to set up the products in Stripe!

    https://simple-membership-plugin.com/sca-compliant-stripe-subscription-button/

    Step 6) Now you will need to log into your Stripe account in a different tab to complete the following steps.

    Step 7) Within your Stripe account, click on the ‘Billing‘ menu on the left hand side and then on ‘Products‘.

    Step 8) Click the ‘New‘ button to create a new product for this subscription style button.
    Step 9) Give it a simple but meaningful name (this will appear in Stripe checkout) and click the ‘Create Product‘ button.

    Step 10) Give the pricing plan a nickname at the top of the page. In the ‘Price per unit‘ section, choose the price of the membership and then choose the billing interval from the drop-down menu.

    Step 11) Click the ‘Add pricing plan‘ button.

    Step 12) You have now created the subscription in your Stripe account. Copy and paste the ID of this plan from your Stripe account into the ‘Stripe Plan ID‘ field in the ‘Create New Button‘ interface of the Simple Membership Plugin.

    Plugin Support mbrsolution

    (@mbrsolution)

    Sorry, yes you are correct.

    I have submitted a message to the developers to investigate further your issue.

    Thank you

    Plugin Author wp.insider

    (@wpinsider-1)

    Stripe changes their interfaces on a regular basis so the screenshot gets a little bit outdated sometimes. I have just updated the documentation.
    https://simple-membership-plugin.com/sca-compliant-stripe-subscription-button/

    In your case, you should be able to copy the value of the “API ID” field and then paste it in the button’s Stripe Plan ID field. I have added a new screenshot in step 10 of the documentation that shows where to get the “API ID”

    We will release a new version of the plugin which will rename the label from “Stripe Plan ID” to “Stripe API ID”.

    Thread Starter denialdesign

    (@denialdesign)

    Thanks.
    I’ve updated the payment buttons and updated the plugin but I’m still getting the fatal error.
    Is the plugin using the prices API or the Plans API?

    Plugin Author wp.insider

    (@wpinsider-1)

    There is no “prices” API or “plans” API. To create a customer and subscribe that customer to a subscription, It requires the an ID value. Previously, Stripe used to call this ID “Plan ID”. Now they have renamed it to “API ID”. The value is still the same, just the label is different and the value that they generate looks different also. The NEW ID value should look like the one shown in the new screenshot here:
    https://simple-membership-plugin.com/sca-compliant-stripe-subscription-button/

    I already created a new subscription product and tested the whole process to make sure it is working fine.

    Thread Starter denialdesign

    (@denialdesign)

    OK but it still isn’t working. Can I DM you some log in details?

    Thread Starter denialdesign

    (@denialdesign)

    I found a workaround. By using the legacy subscription button I could subscribe.
    Using the SCA button I don’t even get to Stripe payment page, just directed straight to the IPN page which is why the subscription is failing.

    Same problem here!!!!
    I’ve followed all steps in the documentation, but still getting same error

    Fatal error! Payment with ref_id swpm_c910c304ec577355eedcd89bb7064707|44 can’t be found

    Can you guys help us, please??!?!!

    Plugin Support mbrsolution

    (@mbrsolution)

    @fabianoone, this thread is marked as resolved. Please start a new support thread.

    Thank you

    thanks for reply… I’ve just discovered what was wrong…in step 7 in your documentation, it doesn’t say that you have to put in test or live mode to create the product…and was misunderstood that.

    ? done!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Fatal error! Payment with ref_id can’t be found’ is closed to new replies.