#Anas_Discord-Payment

1 messages · Page 1 of 1 (latest)

clear arch
#

and you can save the response charge id to your database

gaunt fable
#

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

clear arch
#

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

gaunt fable
#

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!

gaunt fable
#

this my capture code

#

Keenly waiting for your response

clear arch
#

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

gaunt fable
#

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

gaunt fable
#

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

flat dome
#

@gaunt fable Do you still need more help? Can you clarify what kind of unique ID you're trying to pass?