- This topic has 2 replies, 3 voices, and was last updated 8 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Stripe subscription with trial
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?
Thank you for sharing this fix. I have submitted a message to the developers to investigate further your solution.
Kind regards
We have applied this change to the plugin. It will go out with the next release.