我想在我的 iPhone 应用程序中集成 Mobile Express CheckOut Paypal。我已经阅读了文档和示例代码,即 MECL_Pizza_Non_Web 示例代码也将其集成到我的应用程序中,但是当我运行我的应用程序时,我无法获得 drt 和 token 值。此方法返回空值。
- (void)receivedDeviceReferenceToken:(NSString *)token {
//store the token for later use
[ECNetworkHandler sharedInstance].deviceReferenceToken = token;
//carry on to the review page
[self reviewOrder:nil];
}
任何人都可以指导我如何获取它,因为它需要传入 url
https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout- mobile&drt=valueFromMobileExpressCheckoutLibrary&token=valueFromSetExpressCheckoutResponse
最佳答案
确保 App-ID 适合来自 PayPal 的环境。例如 ENV_SANDBOX 是 APP-80W284485P519543T。
[[PayPal getPayPalInst] fetchDeviceReferenceTokenWithAppID:@"APP-80W284485P519543T"forEnvironment:ENV_SANDBOX withDelegate:self];
您还可以在应用运行时查看控制台。
关于iphone - 如何在 iPhone App 中集成 Mobile Express CheckOut Paypal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13721502/