DropIn
Drop-in is our pre-built checkout UI for accepting payments. You only need to integrate through your backend with the /sessions API endpoint and provide some configuration data. Drop-in will handle the rest of the checkout flow.
Alternatively you can opt for a more advanced implementation with the 3 main API endpoints: /paymentMethods, /payments and /payments/details.
To start the checkout flow, register you activity or fragment using registerForDropInResult to receive the result of Drop-in. Then call one of the startPayment methods.
Functions
Register your Activity or Fragment with the Activity Result API and receive the final Drop-in result using the DropInCallback.
Register your Activity or Fragment with the Activity Result API and receive the final Drop-in result using the SessionDropInCallback.
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.
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.