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.
Highlights
Section titled “Highlights”- 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-Authenticateon a 401 andRetry-Afteron a 429. Details: API Errors.
Security
Section titled “Security”Payments and Gateways
Section titled “Payments and Gateways”- PayPal:
notify/paypal/changes a payment only when PayPal confirms the notification’s signature against thewebhook_idof 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
Signatureheader and the Autopay hash are compared in constant time. - Stripe:
notify/stripe/verifies an event only with a non-emptyendpoint_secretof the channel’s Stripe method; without one, or without aStripe-Signatureheader, it answers 400. The view no longer sets the process-widestripe.api_key. - Autopay: an ITN is verified only with a non-empty
AUTOPAY_HASH_KEYentry of the channel in the URL; without one it answers 400NOTCONFIRMEDinstead of 500. - A
free_orderpayment method settles only a cart with nothing left to pay. With an amount due the cart is invalid withFREE_ORDER_AMOUNT_DUE, the method list no longer offersfree_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.
Customer Data
Section titled “Customer Data”- 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.
Contact Forms
Section titled “Contact Forms”- 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.
Backend Service
Section titled “Backend Service”- Lock refresh for Dependabot alerts: certifi, dnspython, filelock, pyasn1, virtualenv and pillow. oauthlib stays on 3.3, since no dependency allows 4.0.
Admin CMS
Section titled “Admin CMS”- 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=devreports nothing.
Changes
Section titled “Changes”Cart Totals and Vouchers
Section titled “Cart Totals and Vouchers”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_appliedis never more than the total it reduced. - v2
subtotal_grossandsubtotal_netare the items alone. They included shipping and the payment fee, so the subtotal moved when the customer chose a shipping method. Totals and the v1base_totaldon’t change: Cart Totals. - A cart is
validonly with everypayment_methodentry 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_ORDERandPOST orders/answers 409 (v1 403). The voucher reached none of the parts before. - v2
PATCH carts/{id}/payment/takes an optionalcontinue_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 oncontinue_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_gratisandmost_expensive_gratisgive 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.
Discount Codes
Section titled “Discount Codes”- v2
POST orders/counts the codes it takes, as v1 does, somax_usedandmax_uses_per_usernow 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 aserror(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_ERRORand issueUNIQUE, the Django admin refuses it andimport-discount-rulesskips it with a warning. Clashes stored before keep working; the configuration checkcheckout.discount_codeslists 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-rulesand the CSV import of the Django admin no longer hang.
Orders
Section titled “Orders”- v2
POST orders/on a cart that cannot become an order yet answers 409 with the reason inerror(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
TypeErrorand 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_errorin thePOST orders/response, and the guest routes declare the channel key without the customer JWT. The bodies and the access rules are unchanged.
Customer Erasure
Section titled “Customer Erasure”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.extrastay. - 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,holdedorin_progress: 409OPEN_ORDERSwith 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.
API Errors
Section titled “API Errors”- PIM admin API: every error answers the v2 envelope
{error, message, debug_id, details[]}instead of{"detail": ...}; status codes are unchanged. A client that readdetailreadsmessage, anddetails[].descriptionon 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_FOUNDinstead of 500.gaps/findings/withoutproduct_ids, with non-integers or with more than 200 ids namesproduct_idsin the 400. - The v2 handler (
entirius-django-utils) and the v1 handler (entirius-django-contentdb) keep the headers DRF sets: a 401 carriesWWW-Authenticateand a 429 carriesRetry-Afteragain. The v1 handler answers Django’sHttp404with 404 andPermissionDeniedwith 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 409SLOT_UNAVAILABLE.
PIM Spec
Section titled “PIM Spec”- 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 theproduct_idslimit.
Matrix
Section titled “Matrix”- The v1 and v2 product listings no longer answer 500 with the default
PAGINATION_TYPEwhen the page count runs on the request thread, and v1products/?magento_id=andproducts_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
0047and0048replace the index of the defaulton_stocklisting. - 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.
Magento Export
Section titled “Magento Export”- 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_methodto a list. An order paid with two methods gets one invoice. An order paid with a voucher still fails the export’s amount check.
Admin CMS
Section titled “Admin CMS”- Configuration health has its own texts for the new backend checks:
agreements.storefront_url,checkout.discount_codesanddjango_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.
Upgrade
Section titled “Upgrade”Steps 1 to 4 come before the deploy: without them notifications are refused or checkout stops.
-
PayPal
webhook_id. Every PayPal payment method needswebhook_idin itsadditional_data: in the PayPal developer dashboard, the REST app, Webhooks, the Webhook ID of the webhook that points atnotify/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.W002lists the methods without it, inmanage.py check --database defaultand in configuration health. Notes: PayPal. -
Przelewy24
crc_key. Setcrc_keyin theadditional_dataof every Przelewy24 method, or thePRZELEWY24_CRC_KEYsetting. Without one its notifications answer 403. Registering a transaction already needed it. Notes: Przelewy24. -
Stripe and Autopay secrets. A channel’s Stripe method without
endpoint_secret, or a channel without a non-emptyAUTOPAY_HASH_KEYentry, has its notifications answered 400. -
Payment return URL. Put the storefront host in
PAYMENT_REDIRECT_ALLOWED_HOSTSand give the storefront aSITE_URLon https. The storefront then sendscontinue_urlwith the payment method, and checkout checks it for every method, cash on delivery included: an https target goes straight to the gateway whilehttpsis inPAYMENT_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. -
STOREFRONT_BASE_URL. Set it to the storefront address. Unset, the newsletter confirmation and unsubscribe links point athttp://localhost:3000, and the configuration checkagreements.storefront_urlwarns. -
Migrations. Run
migrate: matrix0047and0048build and drop an indexCONCURRENTLY, so the table stays writable. An interrupted0047leaves an invalid index: runDROP INDEX CONCURRENTLY idx_product_channel_stock_id;and migrate again. -
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-erasurespython manage.py complete-erasures --applypython manage.py scrub-gateway-payloadspython manage.py scrub-gateway-payloads --applyUntil then payments stored before keep their whole payloads, buyer included. Both commands are idempotent. Notes: checkout module docs.
-
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. -
Discount code clashes. Open configuration health in the CMS:
checkout.discount_codeslists, 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. -
API clients. A client that parses PIM admin or contact forms error bodies reads
messageanddetails[]instead ofdetail. A v2 storefront handles 409 onPOST orders/(the reason inerror) and readssubtotal_grossas the items alone.
Versions
Section titled “Versions”| Component | Version | Releases |
|---|---|---|
| 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:
| Module | Version |
|---|---|
entirius-django-checkout | 10.1.1 |
entirius-django-matrix | 4.5.1 |
entirius-django-pim | 3.6.1 |
entirius-django-agreements | 3.1.0 |
entirius-django-contentdb | 5.3.1 |
entirius-django-contact-forms | 4.1.2 |
entirius-django-utils | 2.4.3 |
entirius-django-checkout-export-to-magento-api | 2.1.0 |
entirius-django-communicator | 0.4.1 |
entirius-django-munin | 2.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.