使用 Google Checkout 直接提交提交商家定义的送货选项

发布于 2024-09-11 06:21:00 字数 485 浏览 3 评论 0原文

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

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

这可能吗?

送货选项文档

Is it possible to set the shipping options in Google Checkout without using the server-server submission option?

I'm trying to keep this checkout process as simple as possible (mostly because I do not fully understand the server-server API section), and therefore I'm using the direct submission option in Google Checkout (details here. scroll down past the code block). So, I'd like to just add the hidden input fields to designate how much shipping will cost, and send it along.

Is this possible?

Shipping options documentation

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁人与我共长歌 2024-09-18 06:21:00

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

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

确实很棘手,但它有效。

It is, in fact, possible. Here's how I did it:

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

Tricky for sure, but it works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文