Skip to content

Platform 4.2

Platform 4.2 raises the lock of the backend service to a round of module releases, most of them in checkout: payment notifications, cart totals, discount codes and customer erasure. Several fixes change what a client sees, and four need a setting before the deploy. Read Upgrade first; the versions are in Versions.

  • Payment notifications are verified and only move forward. A PayPal notification changes a payment only when PayPal confirms its signature, a Przelewy24 one only with a valid sign, and a notification changes only a payment of its own gateway. A late or repeated status no longer pulls a completed payment back or re-confirms an order that moved on. Details: Payments and Gateways.
  • Cart totals add up. The payment fee and the cash on delivery surcharge come from the method that pays what the vouchers leave, a voucher is debited only by what it takes off, and the v2 subtotal is the items alone. Details: Cart Totals and Vouchers.
  • Discount codes count on v2 orders. POST orders/ takes each code’s use, as v1 does, and refuses an order whose code no longer applies with 409 and the code’s reason. A code is unique per channel and currency. Details: Discount Codes.
  • Customer erasure is complete. It anonymises every personal field checkout keeps, no longer touches another customer’s order, and is refused while an order is still to be fulfilled. Gateway payloads keep only ids, amounts and statuses. Details: Customer Erasure.
  • v2 errors in PIM. The PIM admin API answers every error in the v2 envelope, and the v1 and v2 error handlers keep WWW-Authenticate on a 401 and Retry-After on a 429. Details: API Errors.
  • PayPal: notify/paypal/ changes a payment only when PayPal confirms the notification’s signature against the webhook_id of the payment method, and only a payment of a PayPal method. Anything else answers 403 and writes nothing; PayPal delivers it again.
  • PayPal: the webhook, the buyer’s return and the cancel return only move a payment forward. A completed payment stays final, and an order is confirmed or cancelled only while it waits for payment. The cancel return of an approved or completed PayPal order changes nothing and captures nothing.
  • Przelewy24: a notification is verified by its sign (SHA-384 over the documented fields and the method’s CRC key) before Przelewy24’s verify API is asked. A missing CRC key or sign answers 403, a notification naming another gateway’s payment answers 403, and the verify call uses the payment’s own method.
  • Paynow, Autopay, Stripe and PayU: notifications go through the same forward-only rules. A late or repeated status no longer pulls a completed payment back, re-confirms an order that moved on, or cancels an order confirmed by hand.
  • PayPal, Przelewy24, Paynow, Autopay and Stripe notifications change only a payment of their own gateway; Paynow answers 404 for another gateway’s payment, and Autopay and Stripe change only a payment of the channel whose key verified the notification. Paynow’s Signature header and the Autopay hash are compared in constant time.
  • Stripe: notify/stripe/ verifies an event only with a non-empty endpoint_secret of the channel’s Stripe method; without one, or without a Stripe-Signature header, it answers 400. The view no longer sets the process-wide stripe.api_key.
  • Autopay: an ITN is verified only with a non-empty AUTOPAY_HASH_KEY entry of the channel in the URL; without one it answers 400 NOTCONFIRMED instead of 500.
  • A free_order payment method settles only a cart with nothing left to pay. With an amount due the cart is invalid with FREE_ORDER_AMOUNT_DUE, the method list no longer offers free_order, and the order is refused.
  • The payment bridge refuses a web target with a backslash in its host part, which a browser reads as / and opens at another host. Only deployments that send web return URLs through the bridge were open to it.
  • Gateway payloads are stored through an allowlist on every save, for every provider: transaction and order ids, amounts, currencies, statuses and timestamps. The buyer, descriptions, URLs, products, signatures and card or BLIK credentials are no longer stored. Signatures are still verified on the raw request.
  • Log lines and BI events no longer carry a customer’s personal data: the admin order preview logs the order id, and the PayU, PayPal, Stripe and Autopay notification views log only the scrubbed payload.
  • No exception text reaches a v2 response. A refusal the module wrote (an unknown filter value, an invalid or taken slot) keeps its message; anything else is the generic 500 with a debug_id.
  • Lock refresh for Dependabot alerts: certifi, dnspython, filelock, pyasn1, virtualenv and pillow. oauthlib stays on 3.3, since no dependency allows 4.0.
  • Lock bumps for the open advisories of the dev tooling (undici, qs, fast-uri, postcss-selector-parser, serialize-javascript, body-parser, joi) and happy-dom for the unit tests. npm audit --omit=dev reports nothing.

All of these change what a client sees.

  • The cart charges the payment fee and the cash on delivery surcharge of the method that pays what the vouchers leave, not of the first entry of payment_method. With [voucher, cod] both were dropped. When the vouchers cover the whole cart, no gateway settles anything and no fee is charged.
  • A voucher larger than what the cart has left is debited only by what it takes off; a gift card keeps the rest. voucher_amount_applied is never more than the total it reduced.
  • v2 subtotal_gross and subtotal_net are the items alone. They included shipping and the payment fee, so the subtotal moved when the customer chose a shipping method. Totals and the v1 base_total don’t change: Cart Totals.
  • A cart is valid only with every payment_method entry valid, and product limits set for a shipping and payment method pair apply to each of its methods.
  • An order paid with a voucher and another method debits the voucher before any gateway is asked. A gateway paid next to a voucher reads its own entry: PayU and Stripe get their return URL again, BLIK sends the customer’s code, and PayPal’s breakdown carries the voucher as discount.
  • A voucher on a cart that splits into several orders is refused: the cart reports VOUCHER_NOT_SUPPORTED_ON_SPLIT_ORDER and POST orders/ answers 409 (v1 403). The voucher reached none of the parts before.
  • v2 PATCH carts/{id}/payment/ takes an optional continue_url, where the gateway sends the customer back after paying. Without it PayU had no return URL and Stripe opened no session for a v2 cart. A target the payment step refuses answers 400 on continue_url. How the target is checked: checkout module docs.
  • The payment bridge hands the mobile app the status of the payment the customer was sent to make, not the voucher’s.
  • Stripe: a line of several units with a cart discount is charged its discounted total. What the cart takes off its items goes into one single-use coupon per session.
  • cheapest_gratis and most_expensive_gratis give their discount; it was computed and then overwritten with 0. A gift of a SKU the customer also buys is a line of its own.
  • Merging a guest cart into the customer’s cart works again on v1 and v2; every merge answered 500.
  • v2 POST orders/ counts the codes it takes, as v1 does, so max_used and max_uses_per_user now limit v2 orders. Of two orders racing for a code’s last use, one is not saved. A v2 order whose code no longer applies answers 409 with the code’s reason as error (DISCOUNT_USAGE_LIMIT_REACHED, …). v1 still places such an order without the code.
  • A code is unique per channel and currency. The v2 admin API answers a clashing code with 400 VALIDATION_ERROR and issue UNIQUE, the Django admin refuses it and import-discount-rules skips it with a warning. Clashes stored before keep working; the configuration check checkout.discount_codes lists them. Reference: discounts docs.
  • A rule limited to some currencies applies only to carts in one of them. A code whose rules all leave out the cart currency is rejected as DISCOUNT_CURRENCY_NOT_SUPPORTED.
  • A v1 order with a code that sits on more than one rule no longer answers 403 after the order was saved.
  • import-discount-rules and the CSV import of the Django admin no longer hang.
  • v2 POST orders/ on a cart that cannot become an order yet answers 409 with the reason in error (ADDRESSES_NOT_SELECTED, SHIPPING_OPTION_NOT_SELECTED, PAYMENT_OPTION_NOT_SELECTED, OUT_OF_STOCK) instead of 500. v1 stays 403.
  • An order is refused when a valid item is priced 0; a gift still passes at 0.
  • An order paid with Autopay is created again. Saving the payment raised TypeError and rolled the order back.
  • PayPal: the buyer’s return saves the status PayPal’s capture reports; it answered 500 and saved nothing.
  • Stripe: verified session events are stored as plain JSON; with the pinned stripe library every one answered 500.
  • The v2 spec lists payment_error in the POST orders/ response, and the guest routes declare the channel key without the customer JWT. The bodies and the access rules are unchanged.

DELETE customer/delete (scope checkout.erase) changes in three ways. The full contract, with the table of what is anonymised and what stays: checkout module docs.

  • It anonymises every personal field checkout keeps: the order’s email columns and those of its used codes, street, city, postcode, phone, company and tax id of both addresses, the comment and IP, the gateway payloads, the payment link and the bridge target. Invoices, attachments, tracking numbers and Order.extra stay.
  • It no longer anonymises another customer’s order or cart. The email was matched as a substring, so erasing one address anonymised every order of a longer address that contained it. In another customer’s order only the erased email is replaced.
  • It is refused while the customer has an order in new, unpaid, confirmed, holded or in_progress: 409 OPEN_ORDERS with the blocking orders’ ids, numbers and statuses, and nothing is anonymised. Cancel or finish those orders, then repeat the request. Nothing cancels an abandoned unpaid order by itself.

Erase in checkout before deleting the account: afterwards checkout finds orders only by the emails they hold.

  • PIM admin API: every error answers the v2 envelope {error, message, debug_id, details[]} instead of {"detail": ...}; status codes are unchanged. A client that read detail reads message, and details[].description on a 400. The legacy alias /api/pim/admin/ changes its bodies too. The envelope: Errors.
  • PIM admin API: an unknown channel or product on feature sets, attribute groups and the picture, video, link and file routes answers 404 NOT_FOUND instead of 500. gaps/findings/ without product_ids, with non-integers or with more than 200 ids names product_ids in the 400.
  • The v2 handler (entirius-django-utils) and the v1 handler (entirius-django-contentdb) keep the headers DRF sets: a 401 carries WWW-Authenticate and a 429 carries Retry-After again. The v1 handler answers Django’s Http404 with 404 and PermissionDenied with 403; a v1 retrieve of a missing row was a 500.
  • Contact forms: the 400 and 409 bodies of the admin list filters and the public booking routes are the v2 envelope. The reason is in details[0].description; a taken slot answers 409 SLOT_UNAVAILABLE.
  • The 200 of every PIM admin list operation describes the object the view returns: a page {count, next, previous, results}, {results} or the category products’ {positioned, unpositioned, ...}. The spec said an array. The bodies are unchanged; a client generated from the spec reads them right now.
  • The gaps/findings/ operation documents its 400 and the product_ids limit.
  • The v1 and v2 product listings no longer answer 500 with the default PAGINATION_TYPE when the page count runs on the request thread, and v1 products/?magento_id= and products_m2/ answer again.
  • A paginated listing no longer repeats some products and loses others: every product query ends its order with the product id. Migrations 0047 and 0048 replace the index of the default on_stock listing.
  • v1 and v2 stock/ answer for a bundle what its components allow, as the cart counts it.
  • The v2 listing no longer counts the whole listing on every page.
  • The export reads the method that settles an order (the first entry that is not a voucher); it failed on every order since checkout moved payment_method to a list. An order paid with two methods gets one invoice. An order paid with a voucher still fails the export’s amount check.
  • Configuration health has its own texts for the new backend checks: agreements.storefront_url, checkout.discount_codes and django_checkout.W002.
  • A discount code that repeats another rule’s code in the same channel and currency shows the error on its field, and the edit dialog stays open.
  • Minor and patch updates of 29 dependencies. Details: CMS changelog.

Steps 1 to 4 come before the deploy: without them notifications are refused or checkout stops.

  1. PayPal webhook_id. Every PayPal payment method needs webhook_id in its additional_data: in the PayPal developer dashboard, the REST app, Webhooks, the Webhook ID of the webhook that points at notify/paypal/. Without it webhook notifications are refused (PayPal retries them for about 3 days) and an order is confirmed only when the buyer returns to the shop. django_checkout.W002 lists the methods without it, in manage.py check --database default and in configuration health. Notes: PayPal.

  2. Przelewy24 crc_key. Set crc_key in the additional_data of every Przelewy24 method, or the PRZELEWY24_CRC_KEY setting. Without one its notifications answer 403. Registering a transaction already needed it. Notes: Przelewy24.

  3. Stripe and Autopay secrets. A channel’s Stripe method without endpoint_secret, or a channel without a non-empty AUTOPAY_HASH_KEY entry, has its notifications answered 400.

  4. Payment return URL. Put the storefront host in PAYMENT_REDIRECT_ALLOWED_HOSTS and give the storefront a SITE_URL on https. The storefront then sends continue_url with the payment method, and checkout checks it for every method, cash on delivery included: an https target goes straight to the gateway while https is in PAYMENT_REDIRECT_DIRECT_SCHEMES (the default), any other target goes through the payment bridge and needs its host in the list. A refused target answers 400 and the customer cannot pay. Notes: checkout module docs.

  5. STOREFRONT_BASE_URL. Set it to the storefront address. Unset, the newsletter confirmation and unsubscribe links point at http://localhost:3000, and the configuration check agreements.storefront_url warns.

  6. Migrations. Run migrate: matrix 0047 and 0048 build and drop an index CONCURRENTLY, so the table stays writable. An interrupted 0047 leaves an invalid index: run DROP INDEX CONCURRENTLY idx_product_channel_stock_id; and migrate again.

  7. Customer erasure backfill. After the deploy, finish the erasures an earlier release left half done and reduce the stored gateway payloads. Both commands are a dry run that prints counts until --apply:

    Terminal window
    python manage.py complete-erasures
    python manage.py complete-erasures --apply
    python manage.py scrub-gateway-payloads
    python manage.py scrub-gateway-payloads --apply

    Until then payments stored before keep their whole payloads, buyer included. Both commands are idempotent. Notes: checkout module docs.

  8. Erasure callers. A caller that erases on request handles 409 OPEN_ORDERS: cancel or finish the listed orders and send the request again. Erase in checkout before deleting the account.

  9. Discount code clashes. Open configuration health in the CMS: checkout.discount_codes lists, per channel, the stored codes that two rules of one channel and currency share. They keep working; rename one of each pair in the CMS. No migration and no database constraint.

  10. API clients. A client that parses PIM admin or contact forms error bodies reads message and details[] instead of detail. A v2 storefront handles 409 on POST orders/ (the reason in error) and reads subtotal_gross as the items alone.

ComponentVersionReleases
Platform 4.2.1 entirius-service-volkanos
Backend service 4.2.1 entirius-service-volkanos
Admin CMS 3.4.0 entirius-pwa-cms
Access module 1.1.0 entirius-django-access

The service lock pins these module releases, new in this platform:

ModuleVersion
entirius-django-checkout10.1.1
entirius-django-matrix4.5.1
entirius-django-pim3.6.1
entirius-django-agreements3.1.0
entirius-django-contentdb5.3.1
entirius-django-contact-forms4.1.2
entirius-django-utils2.4.3
entirius-django-checkout-export-to-magento-api2.1.0
entirius-django-communicator0.4.1
entirius-django-munin2.3.1

Every other module has the version the lock of the service pins: Module Catalog.

Update of 2026-11-04 (patch). PIM, checkout and communicator answer with messages the module writes and nothing else: any other exception is a 500 INTERNAL_ERROR with a debug_id, the traceback goes to the log under the same id. A foreign error that used to come back as a 400 (in checkout also a 404) with its own text is now that 500; refusals the modules write keep their status, error code and message. Configuration health honors silenced Django checks for probes as well. Orders paid with a voucher export to Magento: the voucher is an order discount, and an order the voucher covers in full uses the payment mapping voucher_payment_magento_name (default free). The table above shows the module versions of this update.

Versioning and Upgrades