Shopify / buy-button-js

BuyButton.js is a highly customizable UI library for adding ecommerce functionality to any website.
http://shopify.github.io/buy-button-js/
MIT License
243 stars 115 forks source link

buy-button-component can't be use in ios/android webview #825

Open Nicolaschinc opened 2 years ago

Nicolaschinc commented 2 years ago

// shopify. buy button config const client: any = ShopifyBuy.buildClient({ domain: xxxx, storefrontAccessToken: xxxx }) ShopifyBuy.UI.onReady(client).then(function (ui: any) { ui.createComponent('product', { id: xxxx, node: xxxx, moneyFormat: xxx, options: { product: { iframe: false, buttonDestination: 'checkout', contents: { img: false, title: false, price: false }, text: { button: 'Checkout' } }, productSet: {}, modalProduct: {}, option: {}, cart: {}, toggle: {} } }) }) 1、When I click checkout button, normally, it will open new window to show the checkout page, but the button.min report error that "null is not an object (evaluating 'n.location=t.weburl')"

2、As the same component be use in PC browser which is OK

How can I solve it when I use shopify buy button in h5 Hybrid page