Manual Stripe Subscription setup

We are integrating Membership and MarketPress on our site. Instead of single purchases of Memberships through Membership, we use MarketPress to charge a sum amount, and post-process the order programmatically to create the Membership Subscriptions. Setting up the Subscriptions manually, however, we do not specify the Stripe gateway (along with other things) and therefore lose setup of automatic monthly recurring payments. For additional notes MarketPress does not create a MarketPress Stripe Customer object the way Membership does, and therefore we also lose the connection of the Member to the Stripe Customer (we make no call to Member set_gateway_profile). We also do not set up or look up the Stripe Subscription to the related Stripe Plan as Membership does.

Can you tell us how we might correctly programmatically set up the Subscription with Stripe as the gateway WITHOUT initially charging via Membership, but set it correctly to automatically charge for that Stripe Customer for recurring payments.

  • Tyler Postle

    Hey Mike,

    Hope you're doing well today!

    Can you tell us how we might correctly programmatically set up the Subscription with Stripe as the gateway WITHOUT initially charging via Membership, but set it correctly to automatically charge for that Stripe Customer for recurring payments.

    So you're wanting to setup the stripe subscription through MarketPress - Like the way Membership does, connecting the member to the subscription, but without using Membership checkout at all?

    That would be very complex to do as you would essentially need to update MarketPress to support Stripe Subscriptions and create an integration so it communicates with Membership 2 as well. You would need a developer to do that if you're unable to yourself. We do have a jobs board for such situations: https://premium.wpmudev.org/wordpress-development/

    If I'm misunderstanding or you have further questions on that just let us know :slight_smile:

    Cheers,
    Tyler