我正在向谷歌钱包发送数据,它给出了错误
错误类型:merchant_error 这是资源网址:https ://developers.google.com/commerce/wallet/digital/docs/tutorial#1
function setup() {
runDemoButton = document.getElementById("runDemoButton");
runDemoButton.onclick = function() {
google.payments.inapp.buy({
parameters: {},
jwt:"eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiIxNDIwNDk" +
"1MzA5NDM1MjE2ODU3MSIsImF1ZCI6Ikdvb2dsZSI" +
"sInR5cCI6Imdvb2dsZS9wYXltZW50cy9pbmFwcC9" +
"pdGVtL3YxIiwiaWF0IjoxMzc0ODE4Mzg1LCJleHA" +
"iOjEzNzQ4MjQzODUsInJlcXVlc3QiOnsibmFtZSI" +
"6IlBpZWNlIG9mIENha2UiLCJkZXNjcmlwdGlvbiI" +
"6IkEgZGVsaWNpb3VzIHBpZWNlIG9mIHZpcnR1YWw" +
"gY2FrZSIsInByaWNlIjoiMTAuNTAiLCJjdXJyZW5" +
"jeUNvZGUiOiJVU0QiLCJzZWxsZXJEYXRhIjoiWW9" +
"1ciBEYXRhIEhlcmUifX0.yP89u5CAaoBCmdWknpX" +
"084EmNngzs6BGgqLC03qO7Rw" ,
success: function(data1) {window.alert("success"+JSON.stringify(data1))},
failure: function(data) {window.alert("failure"+JSON.stringify(data))}
});
return false;
};