Releases: two-inc/prestashop
Version 2.2.2
Added
- Invoice upload feature: Automatic upload of PrestaShop-generated invoices to Two's system for merchant's who want to distribute their own invoices
- Three-step upload process: Request signed URL, upload PDF to Google Cloud Storage, poll upload status
- Database schema changes: Added columns for invoice upload tracking (
two_invoice_id,two_invoice_upload_status, etc.) - Configuration option:
PS_TWO_USE_OWN_INVOICESto enable/disable invoice upload feature - Order status hook:
hookActionOrderStatusUpdatetriggers invoice uploads on order fulfillment - SSL verification: Enabled by default with configurable override for corporate networks
- Constants extraction: Extracted magic numbers to named constants for better maintainability
- Comprehensive README: Added detailed documentation covering features, installation, configuration, troubleshooting
- CHANGELOG.md: Version history tracking
- Helper functions: Added
getOrderStatusNames()andbuildFulfillmentStatusDescription()for better admin UX
Changed
- API key configuration: Fixed typo (
PS_TWO_MERACHANT_API_KEY→PS_TWO_MERCHANT_API_KEY) - Order payload building: Improved accuracy to match PrestaShop invoices exactly
- Product names: Now include attributes (e.g., "Shirt (Size: S - Color: White)") to match PrestaShop invoices
- Tax calculations: Enhanced precision handling for exact invoice matching
- Code quality: Extracted magic numbers to constants (timeouts, HTTP status codes, payment terms, etc.)
- SQL queries: Improved security using PrestaShop's
Db::delete()method - Error handling: Enhanced logging and user-friendly error messages
- Payment method subtitle: Updated default subtitle from "Receive the invoice via EHF and PDF" to "Buy now, pay later - instant credit" for better customer appeal
- Fulfillment setting label: Improved clarity of "Finalize purchase when order is shipped" setting
- New label: "Automatically fulfill orders with Two"
- Enhanced description explaining automatic fulfillment, payment terms activation, and manual alternative
- Order Status Mapping UI: Added visual feedback showing currently active fulfillment trigger statuses
- Form field description now displays active statuses in green
- Confirmation message after saving shows list of active statuses
- Helps merchants understand which statuses will trigger fulfillment
Fixed
- SQL injection prevention: Improved validation and casting for order IDs
- Order Intent expiry: Fixed server-side validation timing
- Invoice matching: Resolved 1-cent discrepancies between PrestaShop and Two orders
- Formula validation: Fixed "Line item net amount" and "total invoice amount" errors
- Gross amount calculations: Ensured exact matching with PrestaShop invoices
- Tax subtotals: Fixed sum validation to match order totals exactly
Security
- SSL certificate verification enabled by default
- SQL injection prevention improvements
- Input validation enhancements
- Server-side Order Intent verification
Version 2.0.0
What’s New
We’ve made a major upgrade to the Two PrestaShop plugin to give you more flexibility, smoother operations, and a better experience for both you and your buyers.
Expand across regions
Reach more customers with built-in multi-region support, powered by company search and dynamic order intent approval checks.
Work seamlessly in your PrestaShop back office
Manage Two orders just like your regular orders:
Dedicated custom order states for easier tracking and flexibility to map these states to your preferred status actions.
Native support for fulfilments and refunds.
Offer flexible payment terms
Give buyers more choice with dynamic payment terms ranging from 7 to 90 days — fully configurable to match your business needs.
Reach more buyers with translations
Native support for English and Spanish out of the box.
Version 1.2.2
version upgrading 1.2.1 -> 1.2.2
Version 1.2.1
- auto change country phone code based on merchant location
- added information tab in admin
- added lang param in query so that it will generate invoice based on selected language (Norwegian or English)