Custom Checkout

AI-generated summary

完全自定义结账在当前条件下不可行:对于一个 React Native 应用,即使重做店铺前端,也不能在不跳转到 Shopify 托管结账页面或其网页 URL 的情况下完成支付。核心限制是:不是销售渠道应用(sales channel app)时,无法使用相关 Checkout / 支付处理能力。

当前结论较明确:

  • 仅做自定义店铺前端可以,但支付流程最终仍需把用户带到 Web URL。
  • 使用哪个库不是关键问题,现有 react-native-shopify 包是否维护也不改变这一限制。

关于后续可行路径:

  • 如果应用属于销售渠道应用,可通过 Sales Channel SDK 相关流程申请 payment processing(支付处理权限)。
  • 需要在 Partner Dashboard 中提交该权限请求。

讨论已得到答复并基本解决,没有提出新的未决技术方案。

We have a react native app that currently supports a Shopify store through a web view. We are redoing the app and building out the store using react native and want to have a completely custom checkout. We are not a sales channel app so it doesn’t appear that we can use the Checkout API. I see there is a react-native-shopify package however it’s broken and doesn’t appear to be actively maintained.

How can we have a completely custom checkout that does not use a web url or redirect back to Shopify’s checkout?

At this time, you cannot process payments without moving the customer to the web URL eventually unless you are a sales channel with payment processing, regardless of which library you opt to use.

Cheers.

Thanks Alex, I appreciate the timely response. If we were a sales channel app, what would be the best way for us to do this?

I should have linked the documentation before: https://help.shopify.com/en/api/guides/sales-channel-sdk/getting-started#request-payment-processing

You would need to request payment processing from within your partner dashboard.

Cheers.