Await for payment status
1 min
status
Get status of the payment initiation
GET
https://api-sandbox.klavi.ai/payment/customer/v1/instant/payments/{id}/status
require "uri"
require "json"
require "net/http"
url = URI("https://api-sandbox.klavi.ai/payment/customer/v1/instant/payments/{id}/status")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
response = https.request(request)
puts response.read_body
If the status of user consent is CONSENT_AUTHORIZED means that the authentication has been passed, and redirectConsentURL will not be returned.
redirectConsentURL: This url can only be accessed once, and it has 60 seconds to be accessed.