Shopify / checkout-sheet-kit-react-native

Shopify's Checkout Sheet Kit for React Native - simplifying the process of adding checkout to your native apps.
https://shopify.dev/docs/custom-storefronts/mobile-apps
MIT License
30 stars 3 forks source link

Checkout closes immediately after present is called #88

Closed hamzasgd closed 4 months ago

hamzasgd commented 4 months ago

What area is the issue related to?

Checkout Sheet Kit

What version of @shopify/checkout-sheet-kit are you using?

2.0.1

Do you have a minimum reproducible example?

No response

Steps to Reproduce

shopifyCheckout.present(checkoutUrl)

Expected Behavior

it should open the checkout page

Actual Behavior

the webview close immedately when I trigger present

Screenshots/Videos/Log output

No response

Storefront domain

No response

Manni-tech commented 4 months ago

@hamzasgd I am also facing the same issue.

markmur commented 4 months ago

Hey @hamzasgd 👋

Couple of questions:

const error = shopify.addEventListener('error', (error: CheckoutException) => {
    console.log(error);
});
hamzasgd commented 4 months ago

Android

On Wed, 15 May 2024, 1:30 pm Mark Murray, @.***> wrote:

@hamzasgd https://github.com/hamzasgd are you experiencing this on Android or iOS?

— Reply to this email directly, view it on GitHub https://github.com/Shopify/checkout-sheet-kit-react-native/issues/88#issuecomment-2111891331, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCEFOCHSOHMZEGPBEYRLMLZCMMITAVCNFSM6AAAAABHXEGUAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJRHA4TCMZTGE . You are receiving this because you were mentioned.Message ID: @.***>

hamzasgd commented 4 months ago

No checkout.liquid

hamzasgd commented 4 months ago

Error message is empty string

Manni-tech commented 4 months ago

Android

On Wed, 15 May 2024 at 2:08 PM, Muhammad Hamza Masood < @.***> wrote:

Android

On Wed, 15 May 2024, 1:30 pm Mark Murray, @.***> wrote:

@hamzasgd https://github.com/hamzasgd are you experiencing this on Android or iOS?

— Reply to this email directly, view it on GitHub < https://github.com/Shopify/checkout-sheet-kit-react-native/issues/88#issuecomment-2111891331>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/ADCEFOCHSOHMZEGPBEYRLMLZCMMITAVCNFSM6AAAAABHXEGUAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJRHA4TCMZTGE>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/Shopify/checkout-sheet-kit-react-native/issues/88#issuecomment-2111908043, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNVMCOGD6ZSCIXTOVGLCB3ZCMNJTAVCNFSM6AAAAABHXEGUAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJRHEYDQMBUGM . You are receiving this because you commented.Message ID: @.***>

kiftio commented 4 months ago

Could you also send a shop domain so we can check logs? Thanks

hamzasgd commented 4 months ago

xpress-food-services.myshopify.com

FYI it was working perfectly a week ago

hamzasgd commented 4 months ago

Now it just open and closed itself

hamzasgd commented 4 months ago

Checked on 2 stores already same issue

markmur commented 4 months ago

Hey @hamzasgd, this is happening because your store requires customer account login to checkout. If your app is in production and this is urgent, removing that setting from the admin of your store will fix the issue.

image

under /settings/checkout

We will be rolling out a fix for this shortly.

hamzasgd commented 4 months ago

@markmur, as I said, it was working fine with the login screen before

markmur commented 4 months ago

This has been fixed.