Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion 21.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ or
"status": "ERROR",
"reason": "Not found"
}
```
```

## Optional Long-Held HTTP Mode

Services MAY support keeping the HTTP connection open until payment completion by accepting a `wait` parameter without a value, e.g. in the above example the URL would become `https://example.com/verify/894e7f7e...?wait`. The request should return the response when the payment is settled or expires whichever comes first. Clients specifying the `?wait` flag MUST be able to gracefully deal with earlier, non-final responses where `"settled": false` if the server doesn't support the long-held HTTP mode or closed connections due to server timeouts.