【问题标题】:How to integrate Mobile Express CheckOut Paypal in iPhone App如何在 iPhone 应用程序中集成 Mobile Express CheckOut Paypal
【发布时间】:2012-11-23 04:14:28
【问题描述】:

我想将 Mobile Express CheckOut Paypal 集成到我的 iPhone 应用程序中。我已经浏览了文档和示例代码,即 MECL_Pizza_Non_Web 示例代码也将它集成到我的应用程序中,但是当我运行我的应用程序时,我无法获得 drt 和令牌值。这个方法返回空值。

- (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

【问题讨论】:

    标签: iphone paypal xcode4.5


    【解决方案1】:

    确保 App-ID 适合 PayPal 的环境。例如 ENV_SANDBOX 是 APP-80W284485P519543T。

    [[PayPal getPayPalInst] fetchDeviceReferenceTokenWithAppID:@"APP-80W284485P519543T" forEnvironment:ENV_SANDBOX withDelegate:self];

    您还可以在应用运行时查看控制台。

    【讨论】:

      猜你喜欢
      • 2012-10-10
      • 1970-01-01
      • 2013-11-14
      • 2013-07-09
      • 2013-06-05
      • 1970-01-01
      • 2014-02-27
      • 1970-01-01
      • 2013-02-19
      相关资源
      最近更新 更多