Shopify / mobile-buy-sdk-android

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.
MIT License
212 stars 136 forks source link

lastIncomplleteCheckout is always null even after a new checkout is created #666

Open mikemilla opened 4 years ago

mikemilla commented 4 years ago

How do you recover the lastIncompleteCheckout?

val query = query { root ->
    root.customer(accessToken) {
        it.firstName()
        it.lastName()
        it.email()
        it.lastIncompleteCheckout { // How do you get this to not be null?
           ...
        }
    }
}

client.fetch(query, ...

customer.lastIncompleteCheckout always returns null.

I can confirm the checkout is being created. Here is part of the link I receive back for the webUrl... https://xxx.myshopify.com/xxx/checkouts/69aa...9110?key=d8db...81f4

mikemilla commented 4 years ago

This is also from a fork for the codebase, and it not currently in the implementation 'com.shopify.mobilebuysdk:buy3:3.2.3'