#satvik-techie_code
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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.
either re-create the customer on the platform account, or create the Subscription on the connected account using the Stripe-Acocunt header: https://stripe.com/docs/connect/authentication
ok let me check
hi , i have checked the customer is created on platform account , not on connected account
here is the code
Hey there, taking a look, give me some time to catch up
okay
The same customer ID as before?
cus_QuMkndR71Vbc0b?
And what is the latest request that is failing/erroring?
let me give u a complete log
Just the failing request should suffice
-
"charge": null,StripeError {<Stripe.StripeError@4662014 id=> JSON: {
"code": "resource_missing",
"decline_code": null,
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such customer: 'cus_QuNSRvBAr8nn7p'",
"param": "customer",
"payment_intent": null,
"payment_method": null,
"payment_method_type": null,
"request_log_url": "https://dashboard.stripe.com/test/logs/req_Fry0oVybDE7nYh?t=1727184177",
"setup_intent": null,
"source": null,
"type": "invalid_request_error",
"error": null,
"error_description": null
}} Stripe.StripeError
do you need more info ?
No, you;re still not specifying the connected account in the subscription creation request: https://dashboard.stripe.com/test/logs/req_Fry0oVybDE7nYh
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
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 ?
yeah
you need to supply a recurring price
where to set that ?