Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework to Support Latest API #192

Merged
merged 51 commits into from Nov 22, 2015
Merged

Rework to Support Latest API #192

merged 51 commits into from Nov 22, 2015

Conversation

paltman
Copy link
Member

@paltman paltman commented Nov 22, 2015

There were a few backwards incompatible changes that made supporting the latest Stripe API very difficult. When combined looking at all the new features now available since when this library first started out years ago (as django-stripe-payments), I decided to refactor the code base into a service layer supported by proxy models to give us more modularity and setting us up for easier testing and maintenance.

The templates no longer ship with pinax-stripe. They will be shipping in the next release of pinax-theme-bootstrap, however. For templates of this nature to be useful, design decisions need to be made and reliance on frameworks such as Bootstrap will be invariably made. It seems more appropriate to ship the templates I'm going to produce for this with our bootstrap theme as I'm going to use that framework as well as our block structure.

It is important to point out that the views shipping with this are intentionally pretty lean. I've cut out all AJAX and therefore any prescribed reliance on eldarion-ajax. There are some mixins you might find useful and being class based views, you could get along customizing things a lot by subclassing them. I think it would be more useful for pinax-stripe to focus first on building up a solid set of mixing and base views that project sites could customize. Eventually I think we could have some really polished out of the box views for different scenarios.

NOTE

This does not give us 100% coverage of what the Stripe API supports. There is a lot in the change log with regards to added features that still need to be added to pinax-stripe, however, it should solve the bigger blockers in using the latest API, naming multiple subscriptions per user and field changes on Charge objects.

This gives you the ability to run a single test for isolation
paltman added a commit that referenced this pull request Nov 22, 2015
Rework to Support Latest API
@paltman paltman merged commit d74757c into master Nov 22, 2015
@paltman paltman deleted the service-layer branch November 22, 2015 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant