public void OnCreate(Bundle savedInstanceState, StripeConfig stripeConfig) { _stripeConfig = stripeConfig; PaymentConfiguration.Init(_stripeConfig.ApiKey); var stripeRemoteService = new StripeRemoteService(_stripeConfig, _restHttpClient, _logManager, _jsonSerializer); CustomerSession.InitCustomerSession(new StripeEphemeralKeyProvider(stripeRemoteService)); _paymentSession = new PaymentSession(CrossCurrentActivity.Current.Activity); var config = new PaymentSessionConfig.Builder() .SetShippingInfoRequired(false) .SetShippingMethodsRequired(false) .Build(); _paymentSession.Init(new PaymentSessionListener(), config, savedInstanceState); StripeManager.Initialize(stripeRemoteService, _stripeConfig); }