MQCCoder / XYIAPKit

苹果内购组件,提供产品列表查询、添加购买、恢复购买、票据校验、自动续费订阅过期检测以及提供用户交易持久化等功能。
MIT License
304 stars 79 forks source link

用户在appstore推广的时候 点击商品跳转一直弹起支付框,因为在XYStore里设置了 #12

Open Gl-Gz-Cake opened 5 years ago

Gl-Gz-Cake commented 5 years ago

设置了

Gl-Gz-Cake commented 5 years ago

不能做自己的下单支付逻辑

ieliwb commented 4 years ago

@Gl-Gz-Cake @MQCCoder 大佬解决了吗?现在提交升级被拒了

When the user initiates an in-app purchase on the App Store, they are taken into your app to continue the transaction. However, information about the subscription must be displayed to the user prior to the purchase: • Title of publication or service • Length of subscription (time period and content or services provided during each subscription period) Price of subscription, and price per unit if appropriate

Your app must include links to your privacy policy and Terms of Use, and users should be able to access these links at any time.

Gl-Gz-Cake commented 4 years ago

1这里的问题不是说有关订阅的信息必须在购买之前显示给用户么,我这边是有支付金额和获得的价格的,你那边app支付界面是怎么样的 2.这里说的隐私政策链接 是不是指appstore connect里面的隐私政策链接 可以参考下

ieliwb commented 4 years ago

@Gl-Gz-Cake 这些都有,是这样的,已安装了App,从appstore里面的iap推广点进来的,见下图画框地方,会直接打开App后弹窗支付,现在苹果好像是要求进入支付界面必须要有商品介绍等信息。 我看了是通过下面这个协议启动App的,怎么监听把商品介绍页给打开 itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier=product_name

ieliwb commented 4 years ago

我试了腾讯视频,优酷视频的IAP,他们会自动打开商品介绍页

Gl-Gz-Cake commented 4 years ago

在appdelegate里实现 [[SKPaymentQueue defaultQueue] addTransactionObserver:self];的代理方法,关闭该框架的shoudAddstorePayment方法yes方法 返回NO试下。看看是不是你想要的结果

-(BOOL)paymentQueue:(SKPaymentQueue)queue shouldAddStorePayment:(SKPayment)payment forProduct:(SKProduct*)product

{

//做跳转付费界面控制器

BaseNavigationController * nvc = nil;

    if (self.tabar) {

        nvc = (BaseNavigationController *)self.tabar.selectedViewController;

    }else

    {

        UIViewController * ctr = self.window.rootViewController;

        if ([ctr isKindOfClass:[BaseNavigationController class]]) {

            nvc = (BaseNavigationController *)self.window.rootViewController;

        }

    }

                [[PushHelper sharedHelper] pushClassDetailAndNvc:nvc];

    return NO;

}

------------------ 原始邮件 ------------------ 发件人: "ieliwb"<notifications@github.com>; 发送时间: 2019年11月27日(星期三) 下午3:56 收件人: "MQCCoder/XYIAPKit"<XYIAPKit@noreply.github.com>; 抄送: "&#x1F33F;"<2487464453@qq.com>; "Mention"<mention@noreply.github.com>; 主题: Re: [MQCCoder/XYIAPKit] 用户在appstore推广的时候 点击商品跳转一直弹起支付框,因为在XYStore里设置了 (#12)

我试了腾讯视频,优酷视频的IAP,他们会自动打开商品介绍页

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

ieliwb commented 4 years ago

@Gl-Gz-Cake 大佬厉害啊,解决了,谢谢啊,暂时没有动XYIAPKit,先提交试试

Gl-Gz-Cake commented 4 years ago

我的是关闭yes的,嗯,不客气.

------------------ 原始邮件 ------------------ 发件人: "ieliwb"<notifications@github.com>; 发送时间: 2019年11月27日(星期三) 下午4:16 收件人: "MQCCoder/XYIAPKit"<XYIAPKit@noreply.github.com>; 抄送: "&#x1F33F;"<2487464453@qq.com>; "Mention"<mention@noreply.github.com>; 主题: Re: [MQCCoder/XYIAPKit] 用户在appstore推广的时候 点击商品跳转一直弹起支付框,因为在XYStore里设置了 (#12)

@Gl-Gz-Cake 大佬厉害啊,解决了,谢谢啊,暂时没有动XYIAPKit,先提交试试

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.