public final class RedirectUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REDIRECT_RESULT_SCHEME
The suggested scheme to be used in the intent filter to receive the redirect result.
|
Modifier and Type | Method and Description |
---|---|
static android.content.Intent |
createRedirectIntent(android.content.Context context,
android.net.Uri uri)
Creates the intent that will start the redirect.
|
static org.json.JSONObject |
parseRedirectResult(android.net.Uri data)
A redirect may return to the application using the ReturnUrl when properly setup in an Intent Filter.
|
public static final java.lang.String REDIRECT_RESULT_SCHEME
public static org.json.JSONObject parseRedirectResult(android.net.Uri data) throws CheckoutException
JSONObject
to be used in the details call.
We are not handling the case for returnUrlQueryString detail, merchants who use that custom scenario should parse the URL themselves.data
- The returned UriCheckoutException
public static android.content.Intent createRedirectIntent(android.content.Context context, android.net.Uri uri)
context
- Any context.uri
- The Uri to redirect to.