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.