iphone - 如何在 iPhone App 中集成 Mobile Express CheckOut Paypal

标签 iphone paypal xcode4.5

我想在我的 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/

相关文章:

iphone - SOAP 关键字的 SudzC 问题

iPhone:查找当前时区偏移量(以小时为单位)

php - Paypal WPS 凭据

c# - 付款错误 : PayPal error: Invalid request. 查看详情。 (VALIDATION_ERROR) Paypal

ios - 为什么我在 Xcode 4.5 中没有收到任何编译器警告?

html - iphone 上的全屏背景图像模糊

iphone - 无法编译json-framework

paypal - 哪个基于 API 的支付提供商最适合众筹模式?

ios6 - 升级到 Xcode4.5 iOS6 Base SDK 后运行时异常

ios - Storyboard UIView 在滚动时切断对象