SessionComponentCallback
Implement this callback to interact with a PaymentComponent initialized with a session.
Functions
Override this method if you want to take over the sessions flow and make a network call to the /payments/details endpoint of the Checkout API through your server.
The component has encountered an error. Use ComponentError.exception to get the internal exception.
Indicates that the payment flow has finished.
Should be overridden to support runtime permissions for components. Runtime permission should be requested and communicated back through the callback. If not overridden, PermissionHandlerCallback.onPermissionRequestNotHandled will be invoked, which will show an error message.
You can implement this optional method to receive an update any time the state of the component changes.