没有uniqueIdentifier的libPayPalEC.a? [英] libPayPalEC.a without uniqueIdentifier?

查看:113
本文介绍了没有uniqueIdentifier的libPayPalEC.a?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我尝试发送更新后的应用,苹果拒绝了我使用uniqueIdentifier的应用。经过一些研究后我发现,libPayPalEC.a使用了uniqueIdentifier 3次。

today I've tried to send my updated app and the apple declined my app for using uniqueIdentifier. After some research I found, that libPayPalEC.a is using uniqueIdentifier 3 times.

通过终端:strings .Lib / PayPal / libPayPalEC.a | grep uniqueIdentifier

Via terminal: strings .Lib/PayPal/libPayPalEC.a | grep uniqueIdentifier

现在有哪些人可以下载更新的库?我到处寻找......

Does any one now where I can download updated library? I was looking everywhere...

谢谢你,

推荐答案

经过github的一些研究和回答: https:// github。 com / paypal / PayPal-iOS-SDK / issues / 13#issuecomment-17882240 我删除了paypal库,删除了deviceToken代,PayPal手机正在运行!

After some reasearch and great answer on github: https://github.com/paypal/PayPal-iOS-SDK/issues/13#issuecomment-17882240 I've removed paypal library, removed deviceToken generation and the PayPal mobile is working!

如何使用没有库的PayPal付款:

您需要创建在后端支付流程(如PHP),在iOS应用程序中只需打开带有后端URL的Web视图。处理成功或错误处理Web视图请求,以便您可以捕获错误,取消或成功(后端重定向的页面)等链接。

You need to create the payment process on the backend (like PHP) and in the iOS app just open the web view with URL to your backend. To process success or error handle the web view request so you can catch link like error, cancel or success (the pages, which the backend redirects).

- (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库),你只需使用paypal中的令牌作为标准方式。

On the backend handling you don't need to sent dirt token (from the iOS library) any more, you just work with token from paypal as the standard way.

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

As the payment method use _express-checkout not _express-checkout-mobile and don't send drt as deviceToken.

这篇关于没有uniqueIdentifier的libPayPalEC.a?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆