0

当我在我的网站中单击继续到贝宝时,两个窗口(一个灯箱窗口和另一个贝宝主页窗口)同时打开(请注意:此时我有贝宝的令牌并单击此按钮我将用户重定向到:

Response.Redirect("https://www.sandbox.paypal.com/incontext?token=" + resp.Token+"&useraction=commit");

我将javascript函数称为:

<script type="text/javascript">
    $(document).ready(function () {
        var dg = new PAYPAL.apps.DGFlow({ trigger: "PP_btn", expType: "mini" });
    });
</script>

贝宝窗口打开显示错误:“调度错误,请检查日志文件以获取更多信息

不明白问题是什么。让我知道我该怎么做?

4

1 回答 1

0

要打开 PayPal 灯箱窗口,这是最简单的方法:

<form action='checkout.php' METHOD='POST'>
    <input type='image' name='paypal_submit' id='paypal_submit'  src='https://www.paypal.com/en_US/i/btn/btn_dg_pay_w_paypal.gif' border='0' align='top' alt='Pay with PayPal'/>
</form>

<!-- Add Digital goods in-context experience. Ensure that this script is added before the closing of html body tag -->

<script src='https://www.paypalobjects.com/js/external/dg.js' type='text/javascript'></script>
<script>

    var dg = new PAYPAL.apps.DGFlow(
    {
        trigger: 'paypal_submit',
        expType: 'instant'
         //PayPal will decide the experience type for the buyer based on his/her 'Remember me on your computer' option.
    });

</script>
于 2014-05-27T08:26:03.410 回答