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
216 stars 136 forks source link

why web-checkout need to login ? #547

Open sabbirahmed opened 6 years ago

sabbirahmed commented 6 years ago

user already login in my app then user when checkout in web-checkout why need to login in checkout.

sav007 commented 6 years ago

we are working on this right now, but the issue that you need to pass the customer access token as a header argument in web checkout flow

yaxhpal commented 6 years ago

@sav007 Ivan, could you please let us know what is the status of this? Also, how could I transfer customer login state to the web checkout page by passing access token as header? Because I tried following which unfortunately didn't work.

   // Fetched customer access token 
   // I have associated customer using checkoutCustomerAssociate
   // then ...
   Map<String, String> additionalHttpHeaders = new HashMap<>();
   additionalHttpHeaders.put("X-Shopify-Customer-Access-Token", token);
   mWebView.loadUrl(checkout.webUrl, additionalHttpHeaders);

This doesn't work. I didn't get customer automatically logged in on checkout web page. Because of this customer contact details are not prefilled. Please help.

bhavinwebdesk commented 6 years ago

@yaxhpal have you able to solve it?

venkataseshaiahudatha commented 5 years ago

any update??

yaxhpal commented 5 years ago

@yaxhpal have you able to solve it?

Unfortunately no. I had to drop that Idea. I am sending customer info in Url query params like this.

checkout[billing_address][country]=India&checkout[billing_address][address2]=Near+Central+Park&checkout[billing_address][city]=New+Delhi&checkout[billing_address][last_name]=Shukla

ranamrameez commented 4 years ago

Seems like there is no support for developers here. I am browsing to find solutions regarding checkout from android app, but there exist no answer from the sdk developers. so sad!

  1. We have a logged-in user, he still needs to log-in in web checkout.
  2. Cash-On_Delivery option does not exist in Store Front API.
  3. RetryHandler not working! ....
vixdug commented 4 years ago

Hey @ranamrameez

Feel free to post in our developer forums in order to get more eyes on the post from the community as well as our team. Here is the link: https://community.shopify.com/c/Custom-Storefronts-Support/bd-p/custom-storefronts

In regards to your questions, I would need more information but it does sound like you have customer accounts required in Shopify which is causing the need for login on the redirect to the checkout.

ranamrameez commented 4 years ago

@vixdug mam i have posted a question . but i am unable to find solution yet.

Khudoyshukur commented 2 months ago

@sav007 Any update on this? Please we are struggling to make it work

Khudoyshukur commented 2 months ago

@ranamrameez @vixdug @venkataseshaiahudatha @bhavinwebdesk @yaxhpal @sabbirahmed Can you please tell us if you could make it work?