#satvik-techie_code

1 messages ยท Page 1 of 1 (latest)

dull otterBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1288121364368199721

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

twin steeple
#

hi there!

#

the customer your are trying to use exist on your connected account, not on your platform account. so it's expected to not work.

broken violet
#

ok let me check

dull otterBOT
broken violet
#

hi , i have checked the customer is created on platform account , not on connected account

cloud hill
#

Hey there, taking a look, give me some time to catch up

broken violet
#

okay

cloud hill
#

The same customer ID as before?

#

cus_QuMkndR71Vbc0b?

#

And what is the latest request that is failing/erroring?

broken violet
#

let me give u a complete log

cloud hill
#

Just the failing request should suffice

broken violet
#

Learn more about error codes and how to resolve them.

#

do you need more info ?

cloud hill
#

The requestOptions you use when creating the customer likely also need to be used when you create the subscription

#

to provide the connected account authentication context

broken violet
#

now getting below error
Stripe.StripeException: 'The price specified is set to type=one_time but this field only accepts prices with type=recurring.'

#

any suggestions ?

cloud hill
#

Where is that happening?

#

Oh, in the subscription creation request probably

broken violet
#

yeah

cloud hill
#

you need to supply a recurring price

broken violet
#

where to set that ?

cloud hill
#

You can't pass a one time price as a subscription item

#

Please review these docs about modeling your pricing