Class DefaultRedirectHandler
-
- All Implemented Interfaces:
-
com.adyen.checkout.ui.core.internal.RedirectHandler
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class DefaultRedirectHandler implements RedirectHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultRedirectHandler()
-
Method Summary
Modifier and Type Method Description JSONObjectparseRedirectResult(Uri data)A redirect may return to the application using the ReturnUrl when properly setup in an Intent Filter. UnitlaunchUriRedirect(Context context, String url)UnitsetOnRedirectListener(Function0<Unit> listener)UnitremoveOnRedirectListener()-
-
Method Detail
-
parseRedirectResult
JSONObject parseRedirectResult(Uri data)
A redirect may return to the application using the ReturnUrl when properly setup in an Intent Filter. Is usually contains result information as parameters on that returnUrl. This method parses those results and returns a JSONObject to be used in the details call.
- Parameters:
data- The returned Uri- Returns:
The parsed value to be passed on the payments/details call, on the details parameter.
-
launchUriRedirect
Unit launchUriRedirect(Context context, String url)
-
setOnRedirectListener
Unit setOnRedirectListener(Function0<Unit> listener)
-
removeOnRedirectListener
Unit removeOnRedirectListener()
-
-
-
-