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

[10.0] Fixed api version #643

Merged
merged 1 commit into from
Apr 16, 2019
Merged

[10.0] Fixed api version #643

merged 1 commit into from
Apr 16, 2019

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Apr 15, 2019

This commit sets a fixed Stripe API version for all Stripe API calls made from Cashier. It's being passed as an option to all calls together with the api key. The way options are handled has also been refactored so this is now entirely done on the Cashier class while keeping the Billable entity free from any configuration related options. This may later still be changed when a config file for Cashier is introduced: #531

I specifically didn't add a way to change the Stripe Version because from now on we should only allow incremental updates to this version whenever a new version comes out. Depending on breaking changes on Stripe's part we'll have to release a new major version of Cashier or not.

Update: since we want to prevent the version from being changed it doesn't makes sense to keep it as a property. I've change it to a constant on the Cashier class instead.

Closes #621 and #642

This commit sets a fixed Stripe API version for all Stripe API calls made from Cashier. It's being passed as an option to all calls together with the api key. The way options are handled has also been refactored so this is now entirely done on the Cashier class while keeping the Billable entity free from any configuration related options. This may later still be changed when a config file for Cashier is introduced: #531

Closes #621 and #642
@taylorotwell taylorotwell merged commit 970862c into master Apr 16, 2019
@driesvints driesvints deleted the fixed-api-version branch April 16, 2019 13:48
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.

2 participants