#surajpatidar

1 messages ยท Page 1 of 1 (latest)

hasty gardenBOT
light coral
#

๐Ÿ‘‹ happy to help

wraith socket
#

okay

light coral
#

what's the question?

wraith socket
#

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

light coral
#

I'm still not sure what the question is

wraith socket
#

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

light coral
#

yes I think you should be fine

#

please let me know if you face any issues there

wraith socket
#

i have issue

#

stripe.error.InvalidRequestError: Request req_43EZ5zcPRAtGgn: No such charge: 'py_1NOHYDE9YLYsLUB76Jiwlv9a'

light coral
#

you're using your platform account secret to get an object on your connected account

#

you need to add the Stripe Account Header

wraith socket
#

okay means you say stripe_account='{{CONNECTED_ACCOUNT_ID}}', i will use this attr in stripe checkout right

light coral
#

not in stripe checkout

#

but when you try to retrieve the py_xxx charge object

wraith socket
#

but it error genrate from djstripe library i am not retrieve

light coral
#

because you're not using the StripeAccount header for that request