Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Support request] Stripe payment integration problem

Simple Membership Plugin › Forums › Simple Membership Plugin › Stripe payment integration problem

Tagged: stripe

  • This topic has 4 replies, 3 voices, and was last updated 6 years, 10 months ago by admin.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 30, 2019 at 2:33 pm #18839
    MADIdeas
    Participant

    I’m trying to use the Stripe subscriptions integration but there appears to be a problem when cancelling – deleting the user from Stripe sends the subscription ID in the request where the database appears to be holding the customer ID. Note following from logs:

    Creation:
    [08/30/2019 3:03 PM] – SUCCESS: Stripe Subscription IPN received. Processing request…
    [08/30/2019 3:03 PM] – SUCCESS: Sandbox payment mode is enabled. Using test API key details.
    [08/30/2019 3:03 PM] – SUCCESS: Stripe Subscription successful.
    [08/30/2019 3:03 PM] – SUCCESS: swpm_handle_subsc_signup_stand_alone(). Custom value: subsc_ref=2&user_ip=81.149.225.32, Unique reference: cus_FibvPNraRinNHz
    [08/30/2019 3:03 PM] – SUCCESS: Could not find any record using the given email address (rob@robspage.co.uk). Attempting to query database using the unique reference: cus_FibvPNraRinNHz
    [08/30/2019 3:03 PM] – SUCCESS: Did not find a match for an existing member profile for the given reference. This must be a new payment from a new member.
    [08/30/2019 3:03 PM] – SUCCESS: Creating new member account. Membership level ID: 2, Subscriber ID value: cus_FibvPNraRinNHz

    Deletion:
    [08/30/2019 3:10 PM] – SUCCESS: Stripe Subscription Webhook received. Processing request…
    [08/30/2019 3:10 PM] – SUCCESS: Refund/Cancellation check – lets see if a member account needs to be deactivated.
    [08/30/2019 3:10 PM] – SUCCESS: Subscriber ID is present. Retrieving member account from the database. Subscr_id: sub_FibvMzEAClWFc9
    [08/30/2019 3:10 PM] – FAILURE: No associated active member record found for this notification.

    So is this me, or is it a problem in the integration code?

    August 31, 2019 at 10:08 pm #18841
    mbrsolution
    Moderator

    Hi, please check the following documentation to learn more.

    https://simple-membership-plugin.com/how-can-i-cancel-a-stripe-subscription-as-a-merchant/

    Let me know how you go.

    Thank you

    September 2, 2019 at 8:27 am #18848
    MADIdeas
    Participant

    The problem is that, in the documentation, the ID in the SMP database is the subscription, i.e. product ID, which is what Stripe sends for the cancel. However, per the logs above, you can see that when the subscription is set up, the ID being used is the Stripe customer ID:

    [08/30/2019 3:03 PM] – SUCCESS: Creating new member account. Membership level ID: 2, Subscriber ID value: cus_FibvPNraRinNHz

    rather than the subscription ID:

    [08/30/2019 3:10 PM] – SUCCESS: Subscriber ID is present. Retrieving member account from the database. Subscr_id: sub_FibvMzEAClWFc9

    and hence mismatch when it tries to delete.

    September 3, 2019 at 4:28 am #18851
    mbrsolution
    Moderator

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

    Thank you

    September 3, 2019 at 7:00 am #18853
    admin
    Keymaster

    Thank you. I have updated the code to fix this. It will go out with the next release. In the meantime, you can download a copy of it from the following URL and use it:
    https://simple-membership-plugin.com/wp-content/uploads/simple-membership.zip

    Let me know how you go after that.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy