Initialization - Fragment Transfer Experience
Open a specific transfer's status screen inside your own Activity as a Fragment.
Fragment Transfer Experience Initialization
The PayMitto SDK also allows you to open a specific transfer's status screen as a Fragment embedded inside your own Activity, without launching a new Activity. This mirrors openTransferDetailsScreen for hosts that prefer the Fragment integration model.
Once you have created the PayMittoConfiguration object, call openTransferDetailsFragment from the PayMitto singleton, passing the transfer ID. Authentication is performed before onFragmentReady is called. Add the fragment to your FragmentManager inside the callback.
PayMitto.openTransferDetailsFragment(
activity = this@MainActivity,
transferId = "transfer-id",
readyRemitConfiguration = sdkConfiguration
) { fragment ->
supportFragmentManager.beginTransaction()
.replace(R.id.container, fragment)
.addToBackStack(null)
.commit()
}
Edge-to-edgeWhen using the Fragment API, your Activity is responsible for calling
enableEdgeToEdge()if you want the SDK visuals to extend behind the system bars.
LocaleIn Fragment mode, display strings follow your host Activity's locale. The
localizationparameter inPayMittoConfigurationstill controls the API request language (Accept-Languageheader) and date formatting.
If you are using Jetpack ComposeDon't create the configuration object or call
PayMitto.openTransferDetailsFragmentin the compose scope, since recompositions lead to runtime errors.You must create the configuration object inside a
rememberclause or in an AndroidX ViewModel.
Updated 1 day ago

