如何从销售渠道创建订单并将用户重定向到Shopify商店进行付款? [英] How to create an order from sales channel and redirect the user to Shopify store for payment?

查看:266
本文介绍了如何从销售渠道创建订单并将用户重定向到Shopify商店进行付款?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个类似于E-bay或Amazon的电子商务网站上,卖家可以在其中列出他们的产品.

I am working on an e-commerce website similar to E-bay or Amazon, where sellers can list their products.

我还为我的电子商务网站创建了一个Shopify 销售渠道,该网站可以从Shopify导入产品.一个Shopify商店安装了销售渠道应用,其产品将导入到我的电子商务网站中.

I have also created a Shopify Sales Channel for my e-commerce website, which can import products from Shopify. A Shopify store installs the Sales Channel App and their products will be imported to my e-commerce website.

所有这些都工作正常……现在我要构建最后一步,即购买产品.买家来到我的电子商务网站,想要购买从某些Shopify商店进口的产品.我想使买方能够从我的电子商务网站创建订单.

All of this is working fine... now I want to build the last step, which is buy the product. A buyer comes to my e-commerce website and wants to buy a product which has been imported from certain Shopify store. I want to enable the buyer to create an order from my e-commerce website.

根据 Shopify文档:

默认情况下,您的应用可以提供指向Shopify网站的结帐链接 结帐每个产品.这使您的平台可以使用Shopify的网络 结帐,而不是构建自己的本机结帐表单.你可以 通过使用web_url参数将客户定向到结帐链接 Checkout API.

By default, your app can provide checkout links to Shopify's web checkout for each product. This lets your platform use Shopify's web checkout instead of building your own native checkout form. You can direct customers to a checkout link by using the web_url parameter of the Checkout API.

这就是我想要的...我想允许我的电子商务网站中的买家创建订单并将其重定向到Shopify进行付款...购买我该如何实际执行此操作?我可以使用 Order API 来实现此功能吗?以及如何将用户重定向到Shopify商店进行付款?

This is what I want... I want to allow a buyer in my e-commerce website to create an order and redirect him to Shopify for payment... buy how can I actually implement this? Would I be able to implement this using Order API? And how could I redirect the user to Shopify store for payment?

如果无法将用户重定向到Shopify商店进行付款,那么我是否需要使用 Checkout API 在我的电子商务中实施付款流程?谁能提供一些有关此的详细信息?

If redirecting user to Shopify store for payment is not an option, then do I need to implement the payment process within my e-commerce using the Checkout API? Would anyone be able to give some details about this?

推荐答案

使用

Use DraftOrder API to create an order. Once created it has the invoice_url attribute which can be used to pay and complete that order.

这篇关于如何从销售渠道创建订单并将用户重定向到Shopify商店进行付款?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆