#glowens_api

1 messages ¡ Page 1 of 1 (latest)

pastel apexBOT
#

👋 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.

sacred wren
heavy scaffold
#

I can do the cloning but the issue is creating the subscription on the connected account.

sacred wren
#

does the link I posted help?

heavy scaffold
#

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.

sacred wren
#

hmm well that is not really possible, you can't have one single Subscription object shared by two different connected accounts.

heavy scaffold
#

Only 1 connected account needs the to have a subscripion set up

sacred wren
#

you could do

  • create PaymentMethod on platform
  • clone it to accounts A and B
  • A and B each have their own sub_xxx subscription charging their cloned card. The physical customer would have two subscription/sets of invoices, overall.
sacred wren
heavy scaffold
#

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.

sacred wren
#

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
heavy scaffold
#

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.

sacred wren
#

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)

heavy scaffold
#

are there any code example using Vue and PHP?