#surajpatidar
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
okay
what's the question?
i have use this verion of stripe stripe-4.2.0
so can i use this part stripe.checkout.Session.create( mode="payment", line_items=[{"price": '{{PRICE_ID}}', "quantity": 1}], payment_intent_data={ "application_fee_amount": 123, "transfer_data": {"destination": '{{CONNECTED_ACCOUNT_ID}}'}, }, success_url="https://example.com/success", cancel_url="https://example.com/cancel", )
bcz in doc it mention 5 or i have use this
I'm still not sure what the question is
okay
and i want to integration stripe checkout with transfer data with connect accounts of service provider but my stripe version is 4.2.0 so my question is can i use this part in 4.2.0 or not
i have issue
stripe.error.InvalidRequestError: Request req_43EZ5zcPRAtGgn: No such charge: 'py_1NOHYDE9YLYsLUB76Jiwlv9a'
you're using your platform account secret to get an object on your connected account
you need to add the Stripe Account Header
as explained here https://stripe.com/docs/api/connected_accounts
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
okay means you say stripe_account='{{CONNECTED_ACCOUNT_ID}}', i will use this attr in stripe checkout right
but it error genrate from djstripe library i am not retrieve
because you're not using the StripeAccount header for that request