简体   繁体   中英

Paypal Integration swift iOS

嗨,我是使用Paypal的新手,我已经开始使用Paypal SDK,但是我找不到在下面的代码进行转换的方法,因此我快速的应用程序代表可以接管它,任何人都可以通知我如何更改下面的代码并进行更改,以便我的swift文件可以接收它?

[PayPalMobile initializeWithClientIdsForEnvironments:@{PayPalEnvironmentProduction : @"YOUR_CLIENT_ID_FOR_PRODUCTION",PayPalEnvironmentSandbox : @"YOUR_CLIENT_ID_FOR_SANDBOX"}];

试试这个:

PayPalMobile.initializeWithClientIdsForEnvironments([PayPalEnvironmentProduction: "YOUR_CLIENT_ID_FOR_PRODUCTION", PayPalEnvironmentSandbox: "YOUR_CLIENT_ID_FOR_SANDBOX"])

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