Open sabbirahmed opened 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
@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.
@yaxhpal have you able to solve it?
any update??
@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
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!
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.
@vixdug mam i have posted a question . but i am unable to find solution yet.
@sav007 Any update on this? Please we are struggling to make it work
@ranamrameez @vixdug @venkataseshaiahudatha @bhavinwebdesk @yaxhpal @sabbirahmed Can you please tell us if you could make it work?
user already login in my app then user when checkout in web-checkout why need to login in checkout.