#_kajjin_

1 messages · Page 1 of 1 (latest)

orchid plumeBOT
stoic ravine
unkempt saddle
#

collecting using React Stripe.js Elements, this is the request for the token that was generated
req_WHcRkmexxERFZk

#

and basically want to update the default payment method for this subscription "sub_1NxFZgCZPxdphvnuKXL6VEyr" for this connected account "acct_1MfTxACZPxdphvnu"

stoic ravine
#

Okay but the token doesn't exist on that account.

#

This request is successful BTW so which one is throwing the error?

unkempt saddle
#

so, using that token then I try to do:

new_payment_method = Stripe::PaymentMethod.create(
      {
        type: 'card',
        card: {
          token: token
        }
      }, { stripe_account: connected_account_id }
    )

and I get the Stripe::InvalidRequestError: Invalid token id: tok_...

I think bc of what you say that it doesn't exist on that connected account

#

wonder how could I do it then

stoic ravine
unkempt saddle
#

gotcha, ty!

stoic ravine
#

I think dynamically intializing Stripe.js with the account ID is the easiest approach here