#glowens_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1254771262954279006
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hi! you likely want https://docs.stripe.com/payments/payment-methods/connect#cloning-payment-methods overall. It is required to attach the payment method to a Customer object on the platform before you can clone it.
but I do not see how to create a subscription with the card info in the connected account.
https://docs.stripe.com/connect/subscriptions#use-direct-charges-to-create-a-subscription
I can do the cloning but the issue is creating the subscription on the connected account.
does the link I posted help?
The link appears to be for just one connected account. I need to have the customer enter their payment info and submit a payment for $100. $20 of the $100 needs to be charged by connected Acc A and be setup as a monthly subscription. $80 of the $100 needs to be charged by Connected Account B. Both connected accounts needs to have all the customer info.
hmm well that is not really possible, you can't have one single Subscription object shared by two different connected accounts.
Only 1 connected account needs the to have a subscripion set up
you could do
- create PaymentMethod on platform
- clone it to accounts A and B
- A and B each have their own
sub_xxxsubscription charging their cloned card. The physical customer would have two subscription/sets of invoices, overall.
then what's the issue with the fact that what I posted "appears to be for just one connected account" if you only need one subscription?
I need one subscription but I have 2+ connected accounts. I need to have the customer enter their payment info and submit a payment for $100. $20 of the $100 needs to be charged by connected Acc A and be setup as a monthly subscription. $80 of the $100 needs to be charged by Connected Account B. Both connected accounts needs to have all the customer info include the credit card number. I do not need, or want to store the credit card info. I do not have the releationship with the customer other then they are using my platform to faciliate the payment.
then
- create PaymentMethod on platform
- clone it to accounts A and B
- on account A create a Customer + Subscription using that cloned PaymentMethod
- on account B create a PaymentIntent for the the amount you want, using its cloned PaymentMethod
When I clone the payment method is is creating a customer and cloning the credit card info to both Connected accounts. This is what I am not seeing in the docs.
when you clone the payment method, creating a Customer on the destination connected account is optional(but for account A that needs a Subscription it's mandatory)
you'd do it by the normal way of doing this in Connect : https://docs.stripe.com/api/customers/create (you can pass payment_method to the ID of the cloned PM) + https://stripe.com/docs/connect/authentication
are there any code example using Vue and PHP?