0
我已經在很多地方看到過這個錯誤消息,但是沒有發佈任何解決方案讓我越過它。我使用自己的帳戶(在應用程序中列爲付款測試人員)和我的測試用戶測試了付款,而且我總是彈出上面的錯誤提示。我有以下代碼來調用付款對話框:Facebook付款錯誤「處理付款時發生錯誤,您沒有爲此交易收費,請重試。」
function buyPack() {
FB.ui({
method: 'pay',
action: 'purchaseitem',
product: 'https://localhost:44304/html/buypack.html'
},
function (data) {
alert(data);
}
);
}
關閉對話框後,數據在回調時始終爲空。
我的 「產品」 的html文件是這樣的:
<!DOCTYPE html>
<html>
<head prefix=
"og: http://ogp.me/ns#
fb: http://ogp.me/ns/fb#
product: http://ogp.me/ns/product#">
<meta property="og:type" content="og:product" />
<meta property="og:title" content="2012 Pack" />
<meta property="og:image" content="https://localhost:44304/Images/Logo5050.png" />
<meta property="og:description" content="5 cards from the 2012 set" />
<meta property="og:url" content="https://localhost:44304/HTML/BuyPack.html" />
<meta property="product:price:amount" content="1"/>
<meta property="product:price:currency" content="USD"/>
</head>
</html>
這是從Facebook的教程幾乎一字不差拉。任何想法我在這裏做錯了嗎?我應該檢查什麼?我能夠始終如一地執行其他Facebook交互(獲取用戶信息,邀請朋友等)而沒有問題。請幫助!提前致謝。