model/tosspayments_url library

Classes

ConvertUrl
ConvertUrl class takes an URL string and transforms it into a format suitable for the WebView. It handles the conversion for both Android and iOS platforms.

Functions

failFromUrl(String urlString) Fail?
Parses the URL for a failed payment and extracts the relevant information. Returns a Fail object if the URL contains error data; otherwise, returns null.
successFromUrl(String urlString) Success?
Parses the URL for a successful payment and extracts the relevant information. Returns a Success object if the URL contains success data; otherwise, returns null.