Tag: amazon payments

如何在node.js / Javascript中签署Amazon Simple Paybutton

我花了6个小时试图按照Amazon的说明在node.js中签署一个Simple Paybutton。 我不能接受签署,我已经尝试了混乱的说明的每一个排列。 任何人都可以帮助我摆脱苦难吗? 我得到的错误是 input参数签名无效 这是我的程序 var params={ "returnUrl": "[confidential]", "ipnUrl": "[confidential]", "processImmediate": "1", "accessKey" :"[AWS key]", "collectShippingAddress" :"0", "isDonationWidget" :"0", "amazonPaymentsAccountId" :"[the button generator creates this but there is no mention in the docs]", "referenceId" :ref, "cobrandingStyle" :"logo", "immediateReturn" :"1", "amount" :"USD "+amount, "description" : desc, "abandonUrl" :"[confidential]", "signatureMethod": "HmacSHA256", //docs not clear […]