#brittkim

1 messages · Page 1 of 1 (latest)

nocturne turtleBOT
latent juniper
#

So like I said, I'm using Stripe connect, and I have a connected account (acct_1NsX5eEHE3e6biJR
). I created a product with that connected account.

Then on the frontend, I am using the CardElement with my publishable key. After submission, my backend creates a customer, a paymentIntent with the connectedAccountId

But when I try to create the subscription with that priceId, it says "No such price: 'price_1NsX9CEHE3e6biJRGC4d0zZU'"

#

So I figured, maybe the product needs to be created by my account, and not the connected account, but after that I got "No such customer: 'cus_OgHFgCcxfPqpGL'

#

But creating the customer on the connectedAccount's behalf, resulted with No such PaymentMethod: 'pm_1Nsv3uG51kXHv01dE1rWcHRl'; Which would mean I need to have the frontend use the customer's publishable key?

mortal raptor
#

Hi, you typically see this error when you create the object on one account and trying to access it using another account's API keys.

#

To step back, what charge type are you trying to use?

latent juniper
#

standard

mortal raptor
#

So with all of your requests to create a customer, price, and payment method you can pass the Stripe Account header so you can make API calls for your connected accounts.

latent juniper
#

Yes, I'm about to do this with the backend

#

But the frontend card then becomes the problem

#

because the PaymentMethod is tied to my account, not the connected account

mortal raptor
latent juniper
#

Ah!

#

Perfect! It's the same pattern of passing it in as an arg

#

okay! This will resolve everything I'm sure

mortal raptor
latent juniper
#

Thanks!

mortal raptor
#

Sure!

latent juniper
#

Okay! That allowed me to make the subscription without any backend errors... but it looks like the sub failed for some reason?

nocturne turtleBOT
mortal raptor
#

Can you share the request id that failed to create this Subscription?

latent juniper
#

the subscription_id?

#

Where can I find the request id, if not that

mortal raptor
latent juniper
#

Hm, I actually don't see the requests. Is that because I made them with the connect account technically?

mortal raptor
#

You shared the screenshot above. Can you share the customer id instead then?

latent juniper
#

cus_OgHtOoC1B9IjMT

mortal raptor
#

Taking a look

latent juniper
#

Hm, that's interesting. Though I used a stripe test card... Some payment methods require customer authentication

#

Is there a card that is already authenticated?

slow creek
#

Hello! I'm taking over and catching up...

latent juniper
#

ha, which ones? I don't see anything about a card not triggering authentication. I see a lot of cards that DO require it though haha

slow creek
#

Have you tried the 4242424242424242 test card?

latent juniper
#

Yeah

#

That's the one I've been using

slow creek
#

Sounds like you have Radar rules turned on that will try and force 3D Secure on any card that supports it.

latent juniper
#

Interesting

slow creek
#

The 4242 test card does not trigger 3D Secure by default, but it does support it.

latent juniper
#

Hm, these are brand new default accounts. Is that typical?

slow creek
#

No. Let me have a look at the specific transaction...

latent juniper
#

You need an id or anything?

slow creek
#

Nope, it's above, I'm good...

#

This might take a few minutes, haven't forgotten about you though!

#

Oh, I see it.

latent juniper
#

Oh! I see. Does that default to automatic?

slow creek
#

Yes.

latent juniper
#

I just removed that code, and it still failed =/

slow creek
#

Can you give me the request ID?

latent juniper
#

I really want to, but I don't know how haha

#

when I look at my logs, there is nothing

slow creek
#

Make sure you view the Dashboard as the connected account.

latent juniper
#

that's my problem, I don't control that account

slow creek
#

Navigate to the connected account you're making these requests on, click on the ••• button, and you should have an option to view the Dashboard as the connected account.

latent juniper
#

That's my client's account that I'm using

#

Any other way for me to get info?

slow creek
#

This is the way to get that info.

latent juniper
#

oh!

#

I see

#

req_4Aw5yvHshY89uo

#

got it!

slow creek
#

Looking...

latent juniper
#

I found the problem

slow creek
#

You used the 0446 test card:

This card requires authentication for one-time and other on-session payments. However, all off-session payments will succeed as if the card has been previously set up.

latent juniper
#

that time I used one of the bad cards

#

lol

#

yes

#

okay, I fixed and it went through

#

Thanks! I'll leave you alone now ha