ONDC-Official / ONDC-Protocol-Specs

Open Network for Digital Commerce (ONDC) Open API Specifications. ONDC is an ambitious initiative to democratize digital commerce by creating a decentralized network of buyer apps and seller apps through an interoperable protocol specification.
Other
140 stars 59 forks source link

Metro Ticket Integration | TTL understanding #118

Open kparan opened 10 months ago

kparan commented 10 months ago

The significance of TTL in context definition:

"The duration in ISO8601 format after timestamp for which this message holds valid"

Now how should I read this? Let's say the TTL being set as PT20S for the /confirm call. What does that signify from the options below? a. Callback response needs to arrive within 20 secs and if not possible, in the /confirm call response we will get a NACK b. If we get an ACK, but the /on_confirm response doesn't arrive within 20 secs, the transaction will be considered null and void and the client can trigger fallback scenarios