Android Studio 如何通过application_id参数到贝宝SDK在Android?

r6hnlfcb  于 2022-11-25  发布在  Android
关注(0)|答案(1)|浏览(140)

我正在阅读贝宝https://developer.paypal.com/limited-release/paypal-mobile-checkout/android/的文档,在示例中显示x1c 0d1x
但我有下一个错误,参数不匹配.只有当我删除此参数BuildConfig.APPLICATION_ID +“://paypalpay”时才起作用,我怎么能在以后传递参数?

dluptydi

dluptydi1#

config= PayPalConfiguration().environment(PayPalConfiguration.ENVIRONMENT_SANDBOX).clientId(client_id)
        .environment(CONFIG_ENVIRONMENT)
        .merchantName("Example Merchant")
        .merchantPrivacyPolicyUri(Uri.parse("https://www.example.com/privacy"))
        .merchantUserAgreementUri(Uri.parse("https://www.example.com/legal"))
    var i= Intent(this, PayPalService::class.java)
    i.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION,config)
    startService(i)

相关问题