何かが欠けていますが、何がわかりません。私のウェブサイトに Pay with Amazon を実装しており、その実装ガイドに順を追って従いましたが、まだ問題があります。
レンダリングするアドレスとウォレットウィジェットを取得しましたが、のよう に見えるのではなく、次のように見えます
住所が選択されたときに配送オプションが表示され、支払いオプションが選択されたときにカートが表示されるように、注文の詳細を取得しようとしています。
しかし、私は運がありません。さまざまなサイトやドキュメントを調査しましたが、どれも同じで、どこが間違っているのかわかりません。
住所ウィジェットは次のとおりです。
<div id="addressBookWidgetDiv" style="width:400px; height:240px;padding-top:20pt"></div>
<script>
new OffAmazonPayments.Widgets.AddressBook({
sellerId: 'SELLER_ID',
onOrderReferenceCreate: function(orderReference) {
orderReference.getAmazonOrderReferenceId();
},
onAddressSelect: function(orderReference) {
GetOrderReferenceDetails();
},
design: {
designMode: 'responsive'
},
onError: function(error) {
// your error handling code
}
}).bind("addressBookWidgetDiv");
</script>
ウォレットは次のとおりです。
<div id="walletWidgetDiv">
</div>
<script>
new OffAmazonPayments.Widgets.Wallet({
sellerId: 'YOUR_SELLER_ID_HERE',
onPaymentSelect: function(orderReference) {
// Replace this code with the action that you want to perform
// after the payment method is selected.
},
design: {
designMode: 'responsive'
},
onError: function(error) {
// your error handling code
}
}).bind("walletWidgetDiv");
</script>
どんな助けでも大歓迎です。
ありがとう。