- increase typing strictness
- typing tweaks
- python version in publish job
- add type annotations
- deps: update dependency django to ^4.2.18
- deps: update dependency django to ^4.2.17
- deps: update dependency drf-recaptcha to v4
- allow setting API_CHECKOUT_CAPTCHA to a callable function, thereby allowing captcha config to be configured per-request (#26990)
- deps: update dependency django-oscar to v3.2.5
- deps: update dependency django-oscar-api to v3.3.0
- pin django-oscar version due to breaking changes in patch versions
- deps: update dependency drf-recaptcha to ^3.2.0
- deps: update dependency django to ^4.2.16
- deps: update dependency django to ^4.2.15
- deps: update dependency django to ^4.2.14
- deps: update dependency django to ^4.2.13
- deps: update dependency drf-recaptcha to v3.1.0
- deps: update dependency django to v4.2.13
- Update recaptcha field from v2 to v3.
- Ensure order confirmation emails are not sent until after the DB transaction wrapping checkout is committed.
- Add support for requiring a recaptcha field at checkout. Enable with the
API_CHECKOUT_CAPTCHA
setting. - Add support for customizable fraud check rules that run during checkout. These are controlled with the
API_CHECKOUT_FRAUD_CHECKS
setting. Once example rule is provided:oscarapicheckout.fraud.AddressVelocity
.
- Add support for django-oscar 3.2.2
- Add support for django 4.2
- Fix bug where, on occasion,
OrderUpdater
would try to decrementVoucher.num_orders
below 0.
- Add new “Pay Later” deferred payment functionality.
- Oscar 3.0 Compatibility
- Add support for calculating taxes on shipping charges.
- Fix bug with
Voucher.num_orders
value when retrying payment declined orders.
- Remove direct dependency on
phonenumberslite
since it's actually a dependency ofdjango-oscar
.
- Add support for django-oscar 2.x.
- Drop support for django-oscar 1.x.
- Internationalization
- Add new permission:
oscarapicheckout.permissions.CustomerOnly
- Make payment methods create separate
payment.Source
objects per Reference number (!6 <https://gitlab.com/thelabnyc/django-oscar/django-oscar-api-checkout/merge_requests/6>
_). - Delete Voucher applications upon payment decline, rather than waiting for an order placement retry. This fixes issues associated with payment declined orders consuming vouchers.
- Fixed bug that prevented transitioning an order from
Payment Declined
toAuthorized
if the payment type was changed.
- Improved split-pay support by allowing multiple payments of the same type. E.g. two credit cards, etc.
- [Important] To accomplish this, the payment provider plug-in interface changed slightly. Plugins must be updated to support the new interface. The REST API front-end added parameters, but retained backwards compatibility with
0.3.x
.
- [Important] To accomplish this, the payment provider plug-in interface changed slightly. Plugins must be updated to support the new interface. The REST API front-end added parameters, but retained backwards compatibility with
- Fixed bug caused by changing the status of a Payment Declined order (e.g. to Canceled) caused checkout to break for the customer, because they were now editable a basket connected to a non-payment-declined order. Fixes the bug by setting a basket to "Submitted" status whenever the order status transitions from "Payment Declined" to another status.
- Fix Django 2.0 Deprecation warnings.
- Add validation to checkout API to prevent placing an order for an item that went out of stock after the item was added to the customer's basket.
- Fix issue in Python 3 when
OrderCreator.place_order
raises aValueError
exception. - Fix bug occurring in Oscar 1.5 when vouchers can be used by the user placing an order, but not by the order owner.
- Add support for Django 1.11 and Oscar 1.5
- Add helper classes for caching structured data during a multi-step checkout process.
- See
oscarapicheckout.cache
module for details. - Doesn't yet include API views for editing or view such data.
- Currently includes classes for storing email address, shipping address, billing address, and shipping method.
- Required Django Cache framework to be configured.
- See
- [Important] Fix bug introduced in r0.2.6 with multi-step payment methods when retrying a payment decline.
- [Important] Fix bug causing mismatch between
Order.user
andBasket.owner
when, during placement, the order ownership calculator assigns the order to a user other than the basket owner. Now, after creating the order model, the owner of the basket associated with the order is updated to match the order's owner. - Make it possible to set the
ORDER_OWNERSHIP_CALCULATOR
to a callable or a string instead of just a string.
- Improve testing by using tox in the CI runner.
- Upgrade dependencies.
- Make the order in which signals are sent during checkout consistent for synchronous and asynchronous payment methods.
- Previously a synchronous payment method resulted in sending
order_payment_authorized
before sendingorder_placed
, but an asynchronous payment method would triggerorder_placed
first followed byorder_payment_authorized
(on a subsequent HTTP request). They are still different in terms of synchronous payment methods firing both signals on the same request and asynchronous payment methods triggering them on different request, but at least now they are always fired in the same order:order_placed
first followed byorder_payment_authorized
.
- Previously a synchronous payment method resulted in sending
- Require an email address during checkout
- Explicitly dis-allow cache on API views
- Add setting to allow configuring how many payment types may be used on an order
- Add hook for setting the ownership information on an order during placement
- Prevent PaymentEvent.reference from ever being None
- Fix bug where order number wouldn't be recycled for a declined order
- Add context to payment method serializers
- Simplify dependencies
- Allow PaymentMethods to handle 0.00-amount transactions
- Send confirmation message upon order authorization
- Add pep8 linting
- Initial release.