Stripe Connect Payment Trigger

I was using the S2member Stripe Pro Billing Modification Form so that when my lower level users paid a subscription it would trigger their level upgrade.

I’ve now moved on to using Stripe Connect with a Destination Charge so I can split the subscription with a referrer.

But how do I now trigger the s2member level upgrade when I’m not using the Stripe Pro form?

Is there coding I can append to the Stripe Connect payment to trigger the member’s upgrade?

Or is there an attribute I can append to the Stripe Pro form to link to the Stripe Connect payment?

Any suggestions?

Hi Andrew.

If you’re not using the pro-form… I guess I’d use s2’s Stripe webhook endpoint… s2member-pro/src/includes/classes/gateways/stripe/stripe-notify-in.inc.php

Add a case for the new event, and do the role/capability changes to the user…

I hope that helps. :slight_smile:

Thanks Cristian - I’ve been told this only works for Stripe Pro forms, not for Stripe Connect. Still looking into it. But any additional suggestion would be greatly appreciated. Andrew

1 Like