Duplicate subscription created in stripe but corresponding user may or may not get created in s2 member

We use stripe for payment capturing. Sometimes when a user fails to submit any payment method , a subscription will be created in stripe but corresponding user is not created in s2 member. On 2nd or 3rd attempt of user in submitting payment details ,multiple subscriptions are created in stripe but only one subscription gets created in s2 member, and sometimes that also does not happen.
We contacted stripe support and they have responded telling it is the issue with wordpress integration.

That’s an interesting behavior. Do you know the steps to reproduce it so I can check it on my tests installation?

If the user didn’t submit a valid payment method, then the signup doesn’t complete, that’s why s2 doesn’t create the user. What I’m not sure is that it’d create the subscription if an invalid payment method was added.

If you haven’t yet, please keep logging enabled, so that when it happens again, you can pull up the logs for any possible clues to help troubleshoot it. WP Admin > s2Member > Log Files

:slight_smile:

Hello
Following are the steps to recreate the problem.

  1. Take any free trial subscription service (monthly/yearly) and enter the card details.
  2. When 3D Secure Authorization is initiated , cancel it without entering the OTP.

You will see a subscription is created in stripe but no user account will be created in s2 member.
Repeat the steps to create multiple subscriptions in stripe

S2 member logs was enabled in our website. I will go through that also.
Our website is cazoommaths.com

Thanks

Hello

On a closer look, I can see that setupintent parameter for stripe is incomplete. Is there a way to prevent such submission from making api call , if setup intent is incomplete so that duplicate subscription creation can be prevented.