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

[Resolved] How to change Stripe payment method with hook

Simple Membership Plugin › Forums › Simple Membership Plugin › How to change Stripe payment method with hook

Tagged: hook stripe payment method

  • This topic has 6 replies, 3 voices, and was last updated 1 year, 3 months ago by carquisa.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 12, 2025 at 8:55 pm #29906
    carquisa
    Participant

    Hi everyone!

    Can anyone help me with the swpm_stripe_sca_session_opts hook? I need to set the payment method to SEPA whenever it’s a subscription (2 different button IDs) and set the payment method to card whenever it’s a one time payment.

    It’s my first time using wordpress hooks, I have seen this hook, but I don’t know how to write the options array to change it…

    https://simple-membership-plugin.com/simple-membership-filter-hook-reference/#swpmstripescasessionopts

    Thank you in advance!

    March 12, 2025 at 10:26 pm #29907
    The Assurer
    Moderator

    Although Single Euro Payments Area (SEPA) is a mandate, it is not a regulatory requirement and only applies to the EU.

    Our Stripe gateway does not support SEPA, but I will refer this to the developer; to see if there are any plans to support it.

    March 12, 2025 at 10:36 pm #29908
    carquisa
    Participant

    I’m already using SEPA payment with the Stripe SCA subscription button and it’s working fine.

    My issue is that I don’t know how to set the options array for the payment method in the hook.

    Thank you!

    March 13, 2025 at 11:35 am #29922
    admin
    Keymaster

    Try using the ‘payment_method_types’ parameter in the Stripe Buy Now button’s shortcode. Below is an example of how to use it:

    [swpm_payment_button id="1234" payment_method_types="card"]

    If this works, it will be better than using the hook to override modify the code as that requires good PHP coding skill.

    March 13, 2025 at 4:03 pm #29923
    carquisa
    Participant

    Thank you admin!

    The solution is quite easy and it works perfectly!! Much more than coding the hooks… I also used the “sepa_debit” payment method for the subscription buttons and it worked too.

    I didn’t found the information for this parameter in the Documentation, where is it?

    March 14, 2025 at 7:25 am #29938
    admin
    Keymaster

    Good to hear that it is solved.

    The option I mentioned has been recently added to the plugin. It’s still on my todo list to add to our documentation.

    March 14, 2025 at 7:56 am #29939
    carquisa
    Participant

    I’m glad it just came out, it’s been the perfect moment for me.

    Some users have already used the buttons and the payment has gone well.

    Thank you!!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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