#valdo99

1 messages ยท Page 1 of 1 (latest)

edgy blazeBOT
fast flax
#

Hi there!

#

You are creating the Checkout Session on a connected account (with stripeAccount: connectedAccount). So you need to do the same with the customer.

#

Both the customer and the Checkout Session need to be on the same Stripe account for things to work.

shadow viper
#

ok nice

#

so if a customer needs to buy from another connected account using off session, he needs to add a payment method before ?

#

he cannot use the one used by the first connected account?

fast flax
#

Yes if you have one customer with a payment method in connected account A, then later if the same customer wants to buy something from connected account B, then they need to re-enter their payment details.
One workaround would be to store the customer on the platform account direclty, and then clone the customer & payment method on the connected account A and B. You can learn more about this here: https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods

shadow viper
#

thanks bro, i think that's what i need

#

very appreciate

#

๐Ÿ‘๐Ÿฝ

fast flax
#

Happy to help ๐Ÿ™‚

shadow viper
#

another thing quickly, can i save firstly the account to account A, execute the payment, and then save the customer with paymentmethod into the platform account?

fast flax
#

Nope. You can only clone payment method from the platform to a connected account.

shadow viper
#

but in this case, the platform account needs to "take" the money and then transfer to the account A

fast flax
#

Not necessarily. You could create the Payment method on the platform, and right after clone it on the connected account to make the payment there

shadow viper
#

in this case i cannot use the checkout session to save the payment method right?

fast flax
#

That true. But you could use the Checkout Session in setup mode to collect the payment details without charging the customer, and then make the charge on the connected account. But yes it's not ideal.

shadow viper
#

mhh, i think the way is to create a custom checkout here ๐Ÿ˜ฆ

#

thanks for the thoughts ๐Ÿ‘๐Ÿฝ

#

if a customer accepts a payment intent off session on the platform account can i pass this to Account A and B ?

#

the thing i'm trying to achieve is, if a customer buys items from account A , then he can buy products from account B without going thorugh checkout

fast flax
#

if a customer buys items from account A , then he can buy products from account B without going thorugh checkout
Then there are only two options:

  • Create the PaymentMethod on the platform, clone the payment method on the connected account, and then do Direct Charges
  • Or create the PaymentMethod on the platform, and then do Destination Charge or Separate Charges & Transfer
    You can learn more about the different types of charges here: https://stripe.com/docs/connect/charges
shadow viper
#

is this mind map ok?

fast flax
#

If you have to use Direct Charges, then it looks correct. But what is "custom checkout pre-filled"?

naive wraith
#

๐Ÿ‘‹ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!