I have implemented connected accounts in Stripe. The customers are created on the platform and when they want to make a payment on a connected account, the customer and his payment method from the platform are cloned in the connected account.
Now, if at that moment (payment) the customer of the connected account adds a new bank card I would like that this new card is reflected/copied in the payment_method of the same customer on the platform. This in order that if the customer wants to make a payment on another connected account he can retrieve this new bank card.
Any idea how to do that?
I can imagine something like retrieving the payment method of the connected account and then copying it to the customer of the platform. But I don't know if it's possible...
For information, I use Flutter (with flutter_stripe plugin) and Firebase (nodejs) as backend.
Many thanks for your help !