#Anas_Discord-Payment
1 messages · Page 1 of 1 (latest)
Are you using Charge instead of PaymentIntent? You will need to call the Capture the Charge API: https://stripe.com/docs/api/charges/capture
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and you can save the response charge id to your database
actually i have used this api , when the customer checkout, the stripe dashboard says uncaptured , now i want to get the amount in my account automatically once the delivery is done, how do i do it? what api or code to use , can you please help with this
If you have used this api, you should already firing a Capture API, right? It's when the delivery is done, you call this API and the Payment status on your Dashboard will turn into succeed
Actually i have used capture api , i want to hold the amount untile the service is given , once the service is given i want the amount to be deducted fully and get into my account , what should i do for this purpose ?
your help in this regards is highly appreciated!
Hello, sorry for late reply
Looks like you are using Charge API with capture = false, that's correct. Later when your service is given, you would want to call the Capture API like in the doc above. For example
var service = new ChargeService();
service.Capture("ch_xxx");
Once it is captured, you should have the fund into your account's balance
Thank you sir , i am trying this right now
Sir how do i get this same id which i used for authorization , here in call [ service.Capture("?????"); ]
asking in the context that each time the transaction id will be unique so how would i get here in this call
sir i have used your given function and it works perfectly fine when i passed the id here in the function manually. but the only thing i want to ask is how do i pass the unique id in the function here eaach time a customer comes , how do i store those unique ids and pass them each time
@gaunt fable Do you still need more help? Can you clarify what kind of unique ID you're trying to pass?