Giter Club home page Giter Club logo

Comments (4)

gilokimu avatar gilokimu commented on September 25, 2024

You have to use this https://github.com/co-cart/co-cart plugin, however I was not able to get it to work, I will pull down the cart endpoint until when I find a better solution

from woodroid.

ProgrammerN avatar ProgrammerN commented on September 25, 2024

I seem to have noticed that issue with cookies but however they still fail at some point.Adding both interceptors at once has issues and you have to make a separate connection for received cookies and another for add cookies data respectively with receiving cart information and sending cart data.

from woodroid.

gilokimu avatar gilokimu commented on September 25, 2024

That is literally what I had done, see below

OkHttpClient client = new OkHttpClient.Builder()
                .addInterceptor(new AddCookiesInterceptor(context))
                .addInterceptor(new ReceivedCookiesInterceptor(context))
                .addInterceptor(loggingInterceptor)
                .readTimeout(30, TimeUnit.SECONDS)
                .writeTimeout(30, TimeUnit.SECONDS)
                .connectTimeout(15, TimeUnit.SECONDS)
                .build();

I would intercept on any request to cart and add the cookies and capture any response from the cart api and store cookies. The implemented cart api does not work with woocommerce authentication

from woodroid.

gilokimu avatar gilokimu commented on September 25, 2024

This has now been implemented through firebase but on the sample app

from woodroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.