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] Stripe subscription with trial

Simple Membership Plugin › Forums › Simple Membership Plugin › Stripe subscription with trial

  • This topic has 2 replies, 3 voices, and was last updated 8 years ago by admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 1, 2018 at 3:42 pm #16761
    kohei
    Participant

    Hi,
    I created a product and a plan with trial setting in my Stripe dashboard and then made a payment button for Stripe Subscription. But I noticed that the subscription made by the button was already in active status rather than trialing status.

    I think that the POST message creating subscription should be with ‘trial_from_plan=true’.

    So I tweaked ipn/swpm-stripe-subscription-ipn.php as following:

    
     94         // Create the charge on Stripe's servers - this will charge the user    's card
     95         try {
     96             $customer = \Stripe\Customer::create(array(
     97                         'description' => $descr,
     98                         'email' => $stripe_email,
     99                         'source' => $token,
    100                         'plan' => $plan_id,
    101                         'trial_from_plan' => 'true',
    102             ));
    

    Do you have any concerns on this change?

    November 1, 2018 at 9:54 pm #16762
    mbrsolution
    Moderator

    Thank you for sharing this fix. I have submitted a message to the developers to investigate further your solution.

    Kind regards

    November 3, 2018 at 11:40 pm #16771
    admin
    Keymaster

    We have applied this change to the plugin. It will go out with the next release.

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