Stripe Connect setup with Pay gem
I am setting up a payment pathway in my application to accept and pay other users within the platform, but there is an extra step to this. A User belongs to an Organization.
user belongs_to :organization
organization has_many: users
The payment process would go:
User > Organization > User
So I believe that the Parent Organization would need to be the only :merchant that I would be able to setup a payment and transfer though.
So I believe it would flow something like, if the app was rideshare type:
- User A marks ride as complete.
- User B confirms and submits payment to Parent Org (merchant in pay and "connected account" in stripe)
- Automatically Transfer from Parent Org to User A once the transfer's funds are available (this generally following this part of the documentation, https://github.com/pay-rails/pay/blob/main/docs/marketplaces/stripe_connect.md#separate-charges-and-transfers)
Am I missing something in the Pay gem flow or setup?
Marketplaces can be pretty confusing. I think this sounds right, but I can't remember if the users receiving payments will need to be a Merchant or not.
https://docs.stripe.com/connect/design-an-integration
Stripe now uses Payouts instead of Transfers, so we might need to update Pay a bit to help with that functionality. They're constantly changing things so it can be hard to keep up!
Thanks @chris. I saw that as well, figured it might be just some wording associated with gem vs stripe, but good to know that in Pay they aren't the same thing. Ill continue to look into connected account or just standard account with Users so they can receive payouts.
Thanks again for everything!