简体   繁体   中英

kotlin- PaymentSessionConfiguration

Hello I am trying to update stripe but when I have to call PaymentSessionConfig my code blocks because the companion of the PaymentSessionConfig class is in private, I cannot modify the class because it is in read only, here is the line :

mPaymentSession = PaymentSession (activity = summaryActivity, config = PaymentSessionConfig)

and the error message I have :

Cannot access 'Companion': it is private in 'PaymentSessionConfig'
Type mismatch.
Required:
PaymentSessionConfig
Found:
PaymentSessionConfig.Companion

Can you share the details of what versions of the SDK you're updating from and to? The migration docs cover a lot of details changes for various versions.

Is it possible you mean to reference some paymentSessionConfig , or what is your config here?

See this example implementation using the PaymentSessionConfig.Builder() ( github )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM