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 回答