get
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The Fragment to associate the lifecycle.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The Fragment to associate the lifecycle.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The Activity to associate the lifecycle.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The Activity to associate the lifecycle.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The owner of the SavedStateRegistry, normally an Activity or Fragment.
A scope that owns ViewModelStore, normally an Activity or Fragment.
The lifecycle owner, normally an Activity or Fragment.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
Your main application class.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The Fragment to associate the lifecycle.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
The Configuration of the component.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The Activity to associate the lifecycle.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
The Configuration of the component.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.
Get a PaymentComponent with a checkout session. You only need to integrate with the /sessions endpoint to create a session and the component will automatically handle the rest of the payment flow.
Return
The Component
Parameters
The owner of the SavedStateRegistry, normally an Activity or Fragment.
A scope that owns ViewModelStore, normally an Activity or Fragment.
The lifecycle owner, normally an Activity or Fragment.
The CheckoutSession object to launch this component.
The corresponding PaymentMethod object.
The Configuration of the component.
Your main application class.
The callback to handle events from the PaymentComponent.
The key to use to identify the PaymentComponent.
NOTE: By default only one PaymentComponent will be created per lifecycle. Use key in case you need to instantiate multiple PaymentComponents in the same lifecycle.