2012-11-24 39 views
1

我今天已經注意到,我的鏈接通常彈出一個貝寶燈箱數字貨物快速支付已停止工作。該鏈接最近與2012/11/21一起工作,並且我檢查了包含舊代碼的服務器上存在的問題(以前工作過),所以我不認爲這是我已更改的內容,而是在paypal的js文件中發生了變化。paypal dg流程燈箱不再有效

我使用的代碼是完全由貝寶嚮導生成的內容:

<!-- INFO: The post URL "checkout.java" is invoked when clicked on "Pay with PayPal" button.--> 

<form action='checkout.java' 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> 

首先,當現在的頁面加載,有貌似有一個名爲「nameOnButton」(以下簡稱「圖像的圖像上的一些噪音'包含帶有幾個空框的文本'su yi')PP javascript必須插入,因爲它不在我生成的HTML中。網絡上的各種示例也具有這種虛假圖像。該HTML看起來像:

<form action="/pay/dpSetCheckout/" method="GET" target="PPDGFrame"> 
     <input type="hidden" name="express"> 
     <input type="hidden" name="trackingNumber" value="UNg0000306"> 
     <span class="nameOnButton"><a href="javascript:"><img src="https://www.paypal.com/webapps/checkout/nameOnButton.gif"></a><br><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"></span> 
     </form> 

... 

<script> 

    $(document).ready(function(){ 

    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> 

當我點擊「支付使用PayPal」按鈕,屏幕「深淺灰色」,但從來沒有出現在貝寶彈出。大約5秒後,錯誤消息'由於X-Frame-Options禁止顯示而拒絕顯示文檔。'出現在JavaScript控制檯中,很可能是因爲沒有創建燈箱。我不認爲這是後端/配置問題,因爲如果我在新選項卡中打開「pay with paypal」鏈接,它會打開。

我不太確定從哪裏開始debubgging這(看到沒有任何javascript錯誤消息)。

回答

0

我想有一個與日本和中國的語言字體錯誤在最近的PayPal發佈,並應儘快修復

+0

看起來就像是在貝寶發佈的一個錯誤是看起來現在的工作。令人難以置信的是,沒有經過適當的測試,貝寶將發佈! – Taras