#hiru99-connect
1 messages · Page 1 of 1 (latest)
👋 Happy to help
Can you share the request ID (req_xxx) that throws this error?
Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
i am just creating for testing so can you solve this or send me the solution see the attched code and solve this
so why i got error/
?
in documentation see this so why error is comimg
?
From the code, you're using destination charge. charges.create() is legacy integration, PaymentIntent is the recommended way: https://stripe.com/docs/connect/destination-charges
so how can i send payment directly through customer card to connect account?
but tell me first why i can't create charges ? why this error is coming
@plain terrace
i am doing same as documentation in doc destination is there
Can you share the link of this doc page?
This documentation used old charge API is no longer recommended. I'd strongly suggest using new payment intent API instead: https://stripe.com/docs/connect/destination-charges
Alternatively, can you provide the request ID of the error, so that I can take a deeper look since the code looks fine? Here's how you can find it. https://support.stripe.com/questions/finding-the-id-for-an-api-request
@plain terrace i want to send payment directly to the connect account so payment intent is better then charges ?
PaymentIntent is the latest integration. With destination charge on PaymentIntent, the fund will be charged from the card and transfer to connected account
and send me also solution or code
The doc has been provided here: https://stripe.com/docs/connect/destination-charges
The discord server is busy at the moment, so it might take a while to get back to you
leave it now i am using Razorpay they provide me all integration sample code
in this where i put cardId means source?
how can know this payment intent that i want to use which card of mine?
@plain terrace give me solution fast please
After payment method is collected, you can pass in as a payment_method inside PaymentIntent creation: https://stripe.com/docs/payments/save-and-reuse#charge-saved-payment-method
Let's step back a bit, any reason why you collect payment method first, then charge to the card?
where i can pass payment method id?