Package-level declarations
Functions
Link copied to clipboard
fun rememberLauncherForDropInResult(callback: DropInCallback): ActivityResultLauncher<DropInResultContractParams>
Register your Composable with the Activity Result API and receive the final Drop-in result using the DropInCallback.
fun rememberLauncherForDropInResult(callback: SessionDropInCallback): ActivityResultLauncher<SessionDropInResultContractParams>
Register your Composable with the Activity Result API and receive the final Drop-in result using the SessionDropInCallback.
Link copied to clipboard
fun DropIn.startPayment(dropInLauncher: ActivityResultLauncher<DropInResultContractParams>, paymentMethodsApiResponse: PaymentMethodsApiResponse, checkoutConfiguration: CheckoutConfiguration, serviceClass: Class<out DropInService>)
fun DropIn.startPayment(dropInLauncher: ActivityResultLauncher<DropInResultContractParams>, paymentMethodsApiResponse: PaymentMethodsApiResponse, dropInConfiguration: DropInConfiguration, serviceClass: Class<out DropInService>)
Starts the advanced checkout flow to be handled by the Drop-in solution. With this solution your backend needs to integrate the 3 main API endpoints: /paymentMethods, /payments and /payments/details.
fun DropIn.startPayment(dropInLauncher: ActivityResultLauncher<SessionDropInResultContractParams>, checkoutSession: CheckoutSession, checkoutConfiguration: CheckoutConfiguration = checkoutSession.getConfiguration(), serviceClass: Class<out SessionDropInService> = SessionDropInService::class.java)
fun DropIn.startPayment(dropInLauncher: ActivityResultLauncher<SessionDropInResultContractParams>, checkoutSession: CheckoutSession, dropInConfiguration: DropInConfiguration, serviceClass: Class<out SessionDropInService> = SessionDropInService::class.java)
Starts the checkout flow to be handled by the Drop-in solution. With this solution your backend only needs to integrate the /sessions endpoint to start the checkout flow.