#dazed
1 messages ยท Page 1 of 1 (latest)
Hi ๐ if you're migrating from one connected account to another, and the previous Payment Method was set up directly on the previous connected account, then yes you will need to resetup those cards on the new connected account.
thank you
and to do this i would just call something like this
const paymentIntent = await this.stripe.setupIntents.create(
{
confirm: true,
customer: customer.id,
payment_method:
(subscription.default_payment_method as string) || (c.default_source as string),
return_url: 'http://localhost:3003/confirm-intent',
},
{
stripeAccount: this.publication.creator.stripeConnectAccount.stripeAccountId,
},
)
then send them an email with a CTA of whats in response.next_action.redirect_to_url?
I don't think so, are you already creating new Payment Method objects on the new connected account? Stripe accounts are not allowed to interact with objects that belong to a different Stripe account, so if you're trying to reference your existing Payment Methods that won't work. You'll need to recollect payment method information.
no, it seems they are using a customer's default payment method, which is what i was doing creating the subscriptions
The default Payment Method from the old connected account?
๐ stepping in here as toby needs to step away
Let's back up a second and clarify exactly what you are trying to do
You have Sub A on Connected Account A and you want to recreate Sub A on Connected Account B, correct?
yes
Got it. And the PaymentMethod currently paying Sub A was originally collected on Connected Account A, not your platform, correct?
(You aren't cloning PaymentMethods)
yes
Okay so the only thing to do here then is to completely recollect the PaymentMethod from the end-customer on Connected Account B and then create a new Subscription on Connected Account B that mirrors the one on Connected Account A... it isn't possible for you to interact between the two Connected Accounts.
ok and if they provide a temporary/restricted api key, it is still not possible to clone payment data from A?
You can only clone payment methods from your Platform to a Connected Account. Unfortunately you can't clone between Connected Accounts
i wonder how ghost does it, they are able to do what we want to do ๐ค
really what we want is the ability to update/cancel the subscription created by the other account but we get You can't make any changes on a subscription that was not created by your application.
i am assuming they are using an api key instead as they can cancel/update the subscription from their side
Yeah we don't support that by default as it allows for malicious actors to affect other folks Subscriptions