Changelogs » Aa-stripe

PyUp Safety actively tracks 261,870 Python packages for vulnerabilities and notifies you when to upgrade.

Aa-stripe

0.9.7

Changed
  - Handle refunds when part of the charge has already been manually refunded.

0.9.6

Changed
  - Ignore specific error "charge_already_refunded" when attempting to create a refund

0.9.5

Added
  - Custom exception class for internal stripe api errors

0.9.4

Added
  - Internal stripe api errors handling

0.9.3

Added
  - Use idempotent charge request
  - Use idempotent refund request
  - Test already charged exception
  - Allow to use external idempotency key postfix for charges

0.9.2

Added
  - partial refunds
  - disputes webhook handler

0.9.1

Fixed
  - fixed migrations

0.9.0

Changed
  - added support for stripe 2.X and dropped support for 1.X

0.8.6

Fixed:
  - double-charge problem when process was preempted while waiting for "charge" stripe response

0.8.5

Fixed
  - Finish charge flow on hard exception
  - Updated owner

0.8.4

Added
  - Add saving charge id and stripe response body in case of error

0.8.3

Added
  - filters to admin StripeCharge list

0.8.2

Added
  - Signal "stripe_charge_refunded" on refund

0.8.1

Added
  - Add option for custom customer description

0.8.0

Improvemets
  - replaced django-jsonfield with a more supported implementation from django_extensions

0.7.1

Added
  - statement_descriptor in charge

0.7.0

Added
  - CustomerDetailsAPI endpoint to add new payment sources for a customer
  Removed
  - StripeCustomer.get_default_source_data method
  Added
  - StripeCustomer.default_source_data property

0.6.6

Fixed
  - refresh_customers command

0.6.5

Fixed
  - setting StripeCustomer.default_source when creating a new customer from API

0.6.4

Added
  - refresh_customers command optimization

0.6.3

Fixed
  - saving StripeCustomer.default_source

0.6.2

Added
  - missing StripeCustomer.default_source field

0.6.1

Fixed
  - customer data is updated after updating one of its sources (customer.source.updated webhook)

0.6.0

Added
  - updating customer CC information (refresh_customers command and customer.updated webhook)
  Removed
  - support for Python 2.7

0.5.0

Added
  - changing customer description

0.4.1

Fixed
  - stripe API key was not set for Refunds.

0.4.0

Changed
  - handling Stripe API errors (CustomersAPI view raises ValidationError with {"stripe_error": "displayable message"} on Stripe error)

0.3.3

Added
  - is_manual_charge flag
  
  Fixed
  - reduced the chance of double charge

0.3.2

Added
  - logging error on create user at stripe failure

0.3.1

Added
  - fixing migrations
  - added Authors.txt

0.3.0

Added
  - Refunding StripeCharge

0.2.26

- updated admin

0.2.25

- better sentry support

0.2.24

- improved cron commands error handling

0.2.23

- improved cron commands error handling

0.2.22

- StripeSubscriptionPlan.amount is now a BigInteger

0.2.21

Added
  - Signal: StripeCharge.stripe_charge_succeeded
  - Signal: StripeCharge.stripe_charge_card_exception
  - StripeCharge.charge_attempt_failed + support of catching charge errors. `charge_stripe` command will not retry those charges.

0.2.20

Added
  - Improved end_subscriptions

0.2.19

Added
  - Bugfixes

0.2.18

Added
  - Bugfixes

0.2.17

Added
  - Full integration of Coupons
  - Webhooks(Events) failsafe

0.2.15

Added
  - Documentation about Subscriptions, SubscriptionPlan

0.2.14

Bugfix
  - created changed to DateTimeField
  - cancel only active subscription - prevent error.

0.2.13

Bugfix
  - improved canceling subscriptions at stripe.

0.2.12

Bugfix
  - improved admin - ordering by -created

0.2.11.4

Bugfix
  - fixed ending subscription. In some cases date was not set but status changed.

0.2.11.3

Bugfix
  - fixed canceled_at

0.2.11.2

Bugfix and improvements
  - fixed imports
  - more data in subscriptions admin

0.2.11.1

Bugfix
  - fixed imports

0.2.11

Improvemets
  - Changed end_subscriptions script to raise errors at the end.
  - Changed charge_stripe script to raise errors at the end.
  - Added Sentry support for cron commands. If Sentry is not available errors will be reported to console.

0.2.10

Improvemets
  - Changed StripeCharge and StripeCustomer to use latest active token instead the one from relation. Relation might in  edge cases lead to token for invalid customer (expired card).

0.2.9.2

Bugfix release
  - fixed end_subscriptions

0.2.9.1

Bugfix release
  - added swappable dependency for user model.

0.2.9

Added
  - added GenericForeignKey to StripeCharge as "source" field. Use https://docs.djangoproject.com/en/1.11/ref/contrib/contenttypes/reverse-generic-relations for reverse lookup.

0.2.8

Changed
  - changed relation on stripe models from  to settings.STRIPE_USER_MODEL, which defaults to settings.AUTH_USER_MODEL. There are cases that CC is connected to, in example, office, not person.
  - changed description on stripe customer to use __str__ method of STRIPE_USER_MODEL

0.2.7

Fixed
  - on_delete

0.2.6

Added
  - Canceling subscriptions

0.2.5

Added
  - Function to refresh subscription

0.2.4

Added
  - DB indexes for stripe ids

0.2.3

Bugfix release
  - dropped application_fee_percent

0.2.2

Bugfix release
  - fixes error with coupon when creating subscription

0.2.1

Bugfix release

0.2

Added
  - creating subscription plans
  - subscription support
  - webhooks support
  - added stripe_response field to all models to store RAW stripe response data
  Changes
  - customer_id on StripeToken to stripe_customer_id
  - remaned StripeToken to StripeCustomer
  - remaned all X.token to X.customer
  - changed API url from /aa-stripe/tokens to /aa-stripe/customers
  - moved creating stripe customer (on stripe) into instance method, not serializer.create. This way it can be in example used by cron.
  - moved ``get_latest_active_customer_for_user`` into StripeCustomer as classmethod

0.1.1

Added
  - related names to user model "stripe_tokens", "stripe_charges"
  - utils.py with get_latest_active_token_for_user
  - API to create StripeToken (Customer) out of stripe.js card authentication response. (uses Django-REST-Framework)
  Changes
  - renamed StripeToken.content to StripeToken.stripe_js_response

0.1

Added
  - charging via StripeCharge model
  - StripeToken model
  - charge_stripe management command