0

サーバーサーバー送信オプションを使用せずに、Google Checkoutで配送オプションを設定することはできますか?

このチェックアウトプロセスをできるだけシンプルにしようとしています(主にサーバーとサーバーのAPIセクションを完全に理解していないため)。そのため、Google Checkoutの直接送信オプションを使用しています(詳細はこちら。スクロールダウンしてコードブロック)。そこで、非表示の入力フィールドを追加して、送料を指定し、一緒に送信したいと思います。

これは可能ですか?

配送オプションのドキュメント

4

1 に答える 1

0

実際、それは可能です。これが私がそれをした方法です:

<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.name" value="Delivery"/>
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.price" value="123.45"/>
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.price.currency" value="USD"/>
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.shipping-restrictions.allow-us-po-box" value="false"/>
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.shipping-methods.flat-rate-shipping-1.shipping-restrictions.allowed-areas.us-country-area-1.country-area" value="CONTINENTAL_48"/>

確かにトリッキーですが、それは機能します。

于 2010-08-01T03:38:01.370 に答える