Api 使用Google Checkout直接提交提交商户定义的配送选项

Api 使用Google Checkout直接提交提交商户定义的配送选项,api,shopping-cart,google-checkout,Api,Shopping Cart,Google Checkout,是否可以在不使用服务器提交选项的情况下在Google Checkout中设置发货选项 我试图使这个签出过程尽可能简单(主要是因为我不完全理解服务器API部分),因此我在Google签出中使用直接提交选项(详细信息。向下滚动代码块)。所以,我只想添加隐藏的输入字段来指定运费,并将其发送出去 这可能吗 事实上,这是可能的。我是这样做的: <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support

是否可以在不使用服务器提交选项的情况下在Google Checkout中设置发货选项

我试图使这个签出过程尽可能简单(主要是因为我不完全理解服务器API部分),因此我在Google签出中使用直接提交选项(详细信息。向下滚动代码块)。所以,我只想添加隐藏的输入字段来指定运费,并将其发送出去

这可能吗


事实上,这是可能的。我是这样做的:

<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"/>

这肯定很棘手,但它是有效的