libPayPalEC.a没有uniqueIdentifier?

今天我试图发送我的更新的应用程序和苹果谢绝使用uniqueIdentifier我的应用程序。 经过一番研究,我发现libPayPalEC.a使用了3次uniqueIdentifier。

通过terminal:string.Lib / PayPal / libPayPalEC.a | grep uniqueIdentifier

现在有谁可以下载更新的库吗? 我到处寻找

谢谢,

请参阅github上的问题: https : //github.com/paypal/PayPal-iOS-SDK/issues/13

经过一些研究和github的好回答: https : //github.com/paypal/PayPal-iOS-SDK/issues/13#issuecomment-17882240我已经删除了贝宝库,删除了deviceToken生成和贝宝手机工作!

如何使用没有图书馆的PayPal付款:

您需要在后端创build付款stream程(如PHP),并在iOS应用程序中打开带有您的后端URL的Web视图。 要处理成功或error handlingWeb查看请求,以便您可以捕获链接,如错误,取消或成功(后端redirect的页面)。

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { NSString *urlString = [[request.URL absoluteString] lowercaseString]; if (urlString.length > 0) { //80 is the default HTTP port. //The PayPal server may add the default port to the URL. //This will break our string comparisons. if ([request.URL.port intValue] == 80) { urlString = [urlString stringByReplacingOccurrencesOfString:@":80" withString:@""]; } NSLog(@"URL %@",urlString); if ([urlString rangeOfString:@"success"].location != NSNotFound) { // handle error if (visible) { [self dismissViewControllerAnimated:YES completion:complete]; } else { dismissOnAppear = YES; } return FALSE; } else if ([urlString rangeOfString:@"cancel"].location != NSNotFound) { // handle error if (visible) { [self dismissViewControllerAnimated:YES completion:complete]; } else { dismissOnAppear = YES; } return FALSE; } else if ([urlString rangeOfString:@"error"].location != NSNotFound) { // handle error if (visible) { [self dismissViewControllerAnimated:YES completion:complete]; } else { dismissOnAppear = YES; } return FALSE; } } return TRUE; } 

在后端处理中,你不需要再发送(从iOS库中的)灰尘标记(token),你只需要使用paypal中的标记作为标准的方式。

由于支付方式使用_express-checkout而不是_express-checkout-mobile,不要发送drt作为deviceToken。