startPayment
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.
Call rememberLauncherForDropInResult to create a launcher and receive the final result of Drop-in.
Use dropInConfiguration to configure Drop-in and the components that will be loaded inside it.
Optionally, you can extend SessionDropInService with your own implementation and add it to your manifest file. This allows you to interact with Drop-in, and take over the checkout flow.
Parameters
A launcher to start Drop-in, obtained with registerForDropInResult.
The result from the /sessions endpoint passed onto CheckoutSessionProvider.createSession to create this object.
Additional required configuration data.
Service that extends from SessionDropInService to optionally take over the checkout flow.
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.
Call rememberLauncherForDropInResult to create a launcher and receive the final result of Drop-in.
Use checkoutConfiguration to configure Drop-in and the components that will be loaded inside it.
Optionally, you can extend SessionDropInService with your own implementation and add it to your manifest file. This allows you to interact with Drop-in, and take over the checkout flow.
Parameters
A launcher to start Drop-in, obtained with registerForDropInResult.
The result from the /sessions endpoint passed onto CheckoutSessionProvider.createSession to create this object.
Additional required configuration data.
Service that extends from SessionDropInService to optionally take over the checkout flow.
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.
Extend DropInService with your own implementation and add it to your manifest file. This class allows you to interact with Drop-in during the checkout flow.
Call rememberLauncherForDropInResult to create a launcher and receive the final result of Drop-in.
Use dropInConfiguration to configure Drop-in and the components that will be loaded inside it.
Parameters
A launcher to start Drop-in, obtained with registerForDropInResult.
The result from the /paymentMethods endpoint.
Additional required configuration data.
Service that extends from DropInService to interact with Drop-in during the checkout flow.
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.
Extend DropInService with your own implementation and add it to your manifest file. This class allows you to interact with Drop-in during the checkout flow.
Call rememberLauncherForDropInResult to create a launcher and receive the final result of Drop-in.
Use checkoutConfiguration to configure Drop-in and the components that will be loaded inside it.
Parameters
A launcher to start Drop-in, obtained with registerForDropInResult.
The result from the /paymentMethods endpoint.
Additional required configuration data.
Service that extends from DropInService to interact with Drop-in during the checkout flow.