GithubHelp home page GithubHelp logo

Comments (3)

specialunderwear avatar specialunderwear commented on May 26, 2024

Hi, maybe you can use some of the information we shared in #93

For the express checkout, I am wondering if you are settings this up for anonymous users or for loggedin users that have allready entered their addresses etc.

Either way I am not really seeing how you can gather all this information you need to send to your api with a single click on a button?

from django-oscar-api.

mshamma avatar mshamma commented on May 26, 2024

Thanks for the info #93. I'm setting this up for anonymous users. I'll use the express checkout response to prepare the order and forward the request as a transaction to Cybersource.

However, I already see now that I have to correct this line

basket.add_product(product, quantity=quantity, options=options)

If the data is invalid, the basket remains open. When the data is corrected on the front-end, the total is thrown off and must be doubled. Should I simply flush the basket upon each request before calling add_product?

[Optional reading more background] We're using oscar for our university donations portal (give.berkeley.edu). The products are funds to which donors may give money. The quantity is always fixed as 1. We're working on an Ember front end that allows them to select the fund (e.g. via the products API) and the gift amount (e.g. total), name, address, phone, notes, etc and post it to the express checkout API.

We chose oscar because of its maturity and flexible pricing strategy. We're using Cybersource, so I'll borrow from django-payments which has a Cybersource provider. Unfortunately, django-oscar-cybersource requires postgres, so this is a non-starter for us.

from django-oscar-api.

mshamma avatar mshamma commented on May 26, 2024

Thanks for the help. I realize I should probably ask this question on SO. http://stackoverflow.com/questions/43006599/can-i-use-existing-the-existing-oscar-oscar-api-object-model-to-implement-a-sing

from django-oscar-api.

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.