Closed Firman95 closed 1 year ago
Yes I want to get expired time via API, not via dashboard or SNAP. Is there any API that returns expired time of a transaction?
Unfortunately, currently not any API on Midtrans that return expired time. Thank you
FYI you can define expiry via API params when you create the transaction. So you can set your own expiry limit and save on your Database without API get status to Midtrans.
Here is the docs to set custom expiry via API https://docs.midtrans.com/en/core-api/advanced-features?id=custom-transaction-expiry
I knew about the other way around, I was just wondering if there is an API that returns the expired time to make the process more simple for my case.
I'm using SNAP and I dont want to save expired time to my DB when I get the snap token, but when the user finish the SNAP process (I could process when midtrans hit our webook notification URL).
Thanks for the reply!
Hi @Firman95 could you more explain for the question? Does you mean is payment details expired time via API?
Currently API get transaction status is not return the param expired time https://docs.midtrans.com/en/after-payment/get-status?id=get-status-api-requests
You can see the expired time via Dashboard Midtrans (attached pic)
Or if you using SNAP, you can open the snap URL again. That will be Pay with in
Thank you