菜鸟教程小白 发表于 2022-12-11 17:53:54

ios - 当我从 iOS 10 的 BrainTree 支付页面点击 Paypal 时打开空白页面


                                            <p><p>我已集成 <a href="https://github.com/braintree/braintree_ios" rel="noreferrer noopener nofollow">BRAINTREE SDK</a>进入我的应用程序。我也遵循 <a href="https://developers.braintreepayments.com/guides/paypal/client-side/ios/v4#implementing-delegate-protocols" rel="noreferrer noopener nofollow">PayPal/Client-Side Implementation</a> 的所有步骤. </p>

<p>它在 iOS 9 中运行良好。但 PAYPAL 功能不仅在 iOS 10 中运行。当我从下面的第一个屏幕点击 PAYPAL 按钮时,已打开空白页面,如下图 2 所示。</p>

<p> <a href="/image/n61Tr.jpg" rel="noreferrer noopener nofollow"><img src="/image/n61Tr.jpg" alt="enter image description here"/></a> </p>

<p> <a href="/image/aEuHe.jpg" rel="noreferrer noopener nofollow"><img src="/image/aEuHe.jpg" alt="enter image description here"/></a> </p>

<p>但是当我想在 iOS 9 中使用 PAYPAL 付款时,它会重定向以下页面,如下图所示,但在 iOS 10 设备中不起作用。</p>

<p> <a href="/image/lsNak.png" rel="noreferrer noopener nofollow"><img src="/image/lsNak.png" alt="enter image description here"/></a> </p>

<p>我不确定为什么这仅适用于 iOS 10。</p>

<p>我还添加了 <a href="https://github.com/braintree/braintree_ios/issues/276" rel="noreferrer noopener nofollow">this issue on GitHub</a> . </p>

<p>任何帮助将不胜感激。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>终于找到了解决办法。这是由于在我的应用中实现的 UITabBarController 造成的。</p>

<p>所以早些时候我展示了支付屏幕(BTDropInViewController),如下所示:-</p>

<pre><code>;
</code></pre>

<p>所以现在我使用这个而不是上面的行,</p>

<pre><code>;

//#define APPDELEGATE ((AppDelegate *)[ delegate]) //Global object of AppDelegate
//@property (strong, nonatomic) UINavigationController *navigationController; //which is declared into AppDelegate.h
</code></pre>

<p>希望,这就是您要找的。任何问题都可以回复我。 :)</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 当我从 iOS 10 的 BrainTree 支付页面点击 Paypal 时打开空白页面,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/40153687/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/40153687/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 当我从 iOS 10 的 BrainTree 支付页面点击 Paypal 时打开空白页面