init

Initialize the PaymentSession with a PaymentSessionListener to be notified of data changes. The reference to the listener will be released when the host (i.e. Activity or Fragment) is destroyed.

The listener will be immediately called with the current PaymentSessionData.

If the PaymentSessionConfig.shouldPrefetchCustomer is true, a new Customer instance will be fetched.

Parameters