Changelog

Changelog

3.0.0
  • Feature - Add support for Walley checkout design v2.0.
  • Feature - Add settings for different checkout layouts.
  • Tweak - Rename Collector to Walley in plugin settings and other backend locations.
  • Tweak - Logging improvements.
  • Fix - Don't try to display checkout iframe on confirmation page.
2.5.0
  • Feature - Add unitWeight if it exist on product data sent to Collector.
  • Feature - Add coc_request_body filter to request body for init and update calls.
  • Feature - Add coc_cart_item filter to cart items sent to Collector.
  • Tweak - Bumped required PHP version to 7.0.
  • Fix - Display Delivery Module shipping info in order even if shipping method isn't a pickup location shipping method.
  • Fix - Check if we can retreive WC()->session to avoid potential error in collector_set_not_required function.
2.4.1
  • Fix - Fix issue when using Delivery module but not having an invoice fee. Resulted in formatting issue in payload sent to Collector.
2.4.0
  • Feature - Add Require Electronic ID signing setting. Possible to require electronic signing in Collector Checkout on a per order line basis.
  • Tweak - Add email & phone number in initialize request to Collector if they exist.
  • Tweak - Improve callback handling. Adds support for (future) pending order notifications.
2.3.1
  • Tweak - Adds first version of Finnish translation files. Only a few strings translated.
2.3.0
  • Tweak - Adds wc_collector_confirm_order function.
  • Tweak - Adds Pay for order request logic.
  • Tweak - Adds filter collector_checkout_sku.
  • Fix - Improved control in wc_collector_get_order_id_by_private_id to avoid returning wrong order id.
  • Fix - Add check - do not trigger payment_complete if private id already exist in another order.
2.2.3
  • Tweak - Improved error response handling in requests. Don't try to create a new Collector session if we get 900, 400 or 423 http responses during update requests.
  • Tweak - Try to redirect to thankyou page if response is Purchase_Completed from Collector and we find a matching order in WooCommerce.
  • Fix - Fix B2B / B2C switcher bug in checkout.
2.2.2
  • Fix - Do not try to make a update fees request to Collector if not needed. Could cause multiple init requests and constant reloading of checkout page.
2.2.1
  • Tweak - Improved logging.
  • Fix - Set correct product price in backup order creation sequence if coupon is used for purchase.
  • Fix - Set correct WC order status in callback for orders with status Preliminary.
2.2.0
  • Tweak - Move confirmation JS to checkout.js file instead of inline rendering.
  • Tweak - Request handling rewrite.
  • Tweak - Log format rewrite.
  • Tweak - Don't load WC checkout form with submit button during confirmation step.
  • Fix - Don't try to make a cancel/activate request if the order hasn't been paid.
2.1.0
  • Feature - Handle activations, cancelations and refunds for Swish orders directly from WooCommerce.
  • Tweak - Adds WooCommerce order request class.
  • Tweak - Introduces separate logger class.
  • Fix - Save Delivery module shipping data correct in session in Woo.
  • Fix - Handles Order management response better (activate & cancel order) when API keys are misconfigured.
  • Fix - Fix ternary operators coding standard (for PHP 8.x).
2.0.2
  • Tweak - Add separate cart shipping template if Delivery module is active. To avoid displaying fallback/standard Woo shipping methods.
  • Fix - Reduce the amount of update requests sent to Collector when using Delivery module.
  • Fix - Fix validation callback error that could happen when switching between B2B & B2C checkout.
  • Fix - Save Collector payment meta data correctly on order creation triggered during checkout_error event. Could cause duplicate orders in Woo.
  • Fix - Tweak in order totals check (in callback from Collector to Woo) to avoid mismatch when there actually isn't one.
2.0.1
  • Fix - Fixed PHP warning in plugin_action_links filter.
2.0.0
  • Feature - Add support for Collector Delivery Module.
  • Feature - Add validation callback logic (as an optional feature). Checks for coupon validation, products in stock, user logged in (if needed) and order amount.
  • Feature - Add support for order management for collector_invoice payment method.
  • Tweak - Add separate db table to store data for validation callback handling.
  • Tweak - Use Action scheduler instead of WP cron for queuing notification callback handling.
  • Tweak - Add WC checkout form fields to Collector Checkout template + add email address to form during customer address update callback.
  • Tweak - Trigger change/blur after updating email address field. Adds support with MailChimp abandoned cart functionality.
  • Tweak - Run payment_complete process in process_payment (instead of woocommerce_thankyou).
  • Tweak - Use Collector paymentName instead of paymentMethod to store the payment mehtod used for the purchase.
  • Tweak - Add settings link on plugin page.
  • Fix - Updated depricated add_fee to be using add_item instead for invoice fee.
  • Fix - Remove double trigger of set_order_status function (could cause double order notes regarding "Payment via Collector Checkout...").
1.5.3
  • Fix - Correct amount is refunded when some order rows is partially and some completely refunded.
1.5.2
  • Enhancement - Collector 1.5.2 tested with WooCommerce 4.0.1.
1.5.1
  • Fix - Do not try to call WP function get_current_screen() if it hasn't been defined.
1.5.0
  • Feature - Added support for Swish as external payment method in the checkout.
  • Tweak - Trigger payment_complete() ofr Collector orders with the status of "Completed".
  • Fix - Delete sessions related to Collector on order received page, even when Collector isn't the selected payment gateway for the order.
  • Fix - Don't try to save Collector specific info to order if other payment method is used.
1.4.3
  • Enhancement - Saving shipping reference to order as post meta. (Support for refunds made on orders with "Table Rate Shipping" as the shipping).
  • Fix - Improved logic for when shipping gets created via API Callback.
1.4.2
  • Enhancement - Added support for partial order line refunds on shipping and fee items.
  • Fix - Prevent function for changing to Collector Checkout payment method from running on the confirmation page. Caused an issue with Google Tag Manager for WordPress by Thomas Geiger.
1.4.1
  • Enhancement - Added support for partial order line refunds.
  • Enhancement - Added support for WooCommerce Smart Coupons.
1.4.0
  • Feature - Added support for English in swedish market and Danish (in Danish market, changed en-DK to da-DK).
  • Tweak - Set orders created via checkout_error to On Hold.
  • Fix - Improved handling/http status respons on fraud callback from Collector.
1.3.3
  • Fix - Fix to use correct address data for logged in users on confirmation page.
1.3.2
  • Tweak - Changed filter to wc_get_template for overriding checkout template.
  • Fix - Added check on update order call to prevent error response redirect to cart if purchase is already completed.
1.3.1
  • Tweak - Improved callback logging.
  • Tweak - Added order total comparison (between Collector & WooCommerce) on fallback creation orders aswell.
  • Fixed - Save shipping address 2 correctly in order in WooCommerce.
  • Fix - Added checks to prevent creation of empty WooCommerce orders on confirmation page.
1.3.0
  • Feature - Added support for changing background color of call to action buttons in Collector Checkout.
  • Tweak - Product title is now sent to Collector correctly for variable products.
1.2.3
  • Tweak - Removed Collectors Instant purchase feature since it's being retired.
1.2.2
  • Fix - Fixed error in communication with Collector when trying to refund product without SKU.
  • Tweak - Plugin WordPress 5.0 compatible.
1.2.1
  • Tweak - Moved collector_wc_show_customer_order_notes & collector_wc_show_another_gateway_button to be displayed in the collector_wc_after_order_review hook.
1.2.0
  • Feature - Added support for partial refunds.
  • Feature - Improved template handling. Template can now be overwritten by adding collector-checkout.php to themes woocommerce folder.
  • Tweak - Added hooks collector_wc_before_order_review & collector_wc_after_order_review to template file.
  • Tweak - Changed class names in html markup in template file.
  • Tweak - Change how order is created in WooCommerce to support enhanced e-commerce tracking via Google Analytics.
  • Tweak - Change ”Please wait while we process your order” so it is added as a modal above all content.
  • Tweak - Added events during Woo order creation to confirmation class.
  • Tweak - Updated Swedish translation.
  • Tweak - Code cleaning & PHP notice fixes.
  • Fix - Add support for orders with 100% dicsount and free shipping.
1.1.2
  • Tweak - Created POT file + started Norwegian translation.
  • Fix - Create new Collector transaction id if response code != 200 on a update request.
  • Fix - Fixed missing text domain. Making Private / Company text in checkout translatable.
1.1.1
  • Fix - Save Shipping company name correctly in WooCommerce order.
  • Fix - Prevent duplicate orders if Collector confirmation page is reloaded manually by customer during create Woo order process.
1.1.0
  • Feature - Added support for B2C B2B Finland.
  • Feature - Added support for B2C Denmark.
  • Feature - Added setting for displaying privacy policy text in checkout.
  • Tweak - Display response message in frontend if response code isn’t 200 on initialize checkout request.
  • Tweak - Improved http response for anti-fraud control (respons with 404 if Woo order hasn't been created yet).
  • Tweak - Improved error messaging/logging when request to Collector fails.
  • Fix - Maybe define constant WOOCOMMERCE_CHECKOUT in ajax functions.
  • Fix - Check if function get_current_screen() exist before tying to add collector invoice number to WC order number.
1.0.0
  • Feature - Add support for B2B Norway.
  • Feature - Add support for wp_add_privacy_policy_content (for GDPR compliance). More info: https://core.trac.wordpress.org/attachment/ticket/43473/PRIVACY-POLICY-CONTENT-HOOK.md.
  • Tweak - Add order note in fallback order creation describing reason why checkout form submission failed.
  • Tweak - Save Collector field Invoice reference in WooCommerce order for B2B purchases.
  • Tweak - Added wc_collector_get_selected_customer_type() helper function. Used to display current selected customer type in frontend better.
  • Fix - Fixed Instant checkout for Norway.
  • Fix - Use order currency instead of store base currency in GET request to Collector after order is created in Woocommerce.
  • Fix - Store Collector paymentId as _transaction_id even for orders with status On hold.
  • Fix - Add invoice fee in fallback order creation process (if needed).
0.9.4
  • Fix - Change how Collector order activation response is interpret so activations also works for part payment.
  • Tweak - Create new Collector session if currency is changed.
0.9.3
  • Fix - Send WooCommerce fees correctly to Collector.
0.9.2
  • Fix - Update cart in WC & Collector checkout on collectorCheckoutCustomerUpdated event.
0.9.1
  • Tweak - Added collector_wc_before_checkout_form action hook in template file.
  • Tweak - Calculate totals before rendering the Collector Checkout template file.
  • Fix - Added closing scrip tag for Collector js file.
  • Fix - Remove PHP notice when Collector iframe doesn't load correctly.
0.9.0
  • Tweak - Make initialize request to Collector before checkout page is rendered to avoid error/timeout and get a faster loading checkout.
  • Tweak - Improved logging.
  • Tweak - Avoid making update cart request directly after initialize request.
  • Fix - WC 3.3 session bug fix that caused orders not being created correctly in backup order creation (server-to-server).
  • Fix - Create new checkout session in WooCommerce & Collector if update fees/update cart has error.
  • Fix - Determine selected payment method on paymentName returned from Collector since paymentMethod has been debrecated.
0.8.1
  • Tweak - Check order status in WooCommerce and compare order total with Collector on notification callback from Collector to avoid mismatch between the two.
  • Tweak - Improved logging in update cart & update fees request.
  • Tweak - Use order meta data instead of session data when making update reference request to Collector.
0.8.0
  • Feature - Added Collector Status report to be able to count and display number of orders created via API callback.
  • Tweak - Added admin notice if price decimals is set to lower than 2.
  • Tweak - Check order totals between Collector and Woo on API callback order creation. Set order to On hold if mismatch is detected.
  • Fix - CSS change to display B2B/B2C radio button switcher correct.
0.7.1
  • Feature - Automatically tie customer account to order if it exist in WC.
  • Tweak - Improved error logging for initialize checkout request.
  • Tweak - Display error message in checkout page when initialize checkout connection fails.
  • Tweak - Save Collector order meta data (private ID, customer type & public token) earlier.
0.7.0
  • Feature - Added settings to be able to set default customer type (B2B/B2C).
  • Feature - Added support for B2B Part payment ”Signing” order status.
  • Tweak - Simplified backup order creation.
  • Tweak - Backup order creation schedule changed from 30 seconds to 2 minutes (after the notificationUri server callback).
  • Tweak - Query orders 1 month back when checking if backup order creation is needed (on API callback).
  • Fix - Changed spelling of Collector PartPayment status name (for translation purposes).
  • Fix - CSS change to display B2B/B2C radio button switcher correct.
0.6.4
  • Tweak - Logging improvements.
  • Tweak - Settings page content updates (links to Collector terms and logotypes).
  • Fix - Prevent customer_adress_updated function from being executed on thankyou page (to avoid an unnecessary request to Collector).
0.6.3
  • Fix - Fallback order creation improvements. Send customer to order received page when redirectPageUri is hit, even if we can’t confirm the order in Collectors system. If then, display a simplified thank you page.
  • Fix - Logging improvement
  • Fix - Remove errors when accessing the order received page without order being created.
  • Fix - Unset Collector sessions correctly on order received page.
  • Tweak - Increased timeout to 10 seconds when communicating with Collector.
  • Tweak - Improved logging in anti fraud callback.
  • Tweak - CSS update to set WC customer details section width the same as Collector iframe in order received page.
0.6.2
  • Fix - Update order reference (WC order number) in Collector for orders created on fallback order creation.
  • Tweak - Support for Sequential order numbers & Sequential order numbers Pro in fallback order creation.
  • Tweak - Change page title (from Checkout to Please wait while we process your order) when processing WC order in checkout.
  • Tweak - Use returned purchase data for payment_id and payment_method instead of stored session data during WC order process.
  • Fix - Add user id to WC order on fallback order creation.
  • Fix - Limit fee id to max 50 characters when sending cart data to Collector.
0.6.1
  • Fix - Moved check if class WC_Payment_Gateway exists before including files. Avoid errors during update process.
0.6.0
  • Tweak - Backup order creation on notificationUri server callback from Collector (scheduled 30 seconds after purchase) if error occur in frontend.
  • Tweak - Only create new Collector public token when needed.
  • Tweak - If payment complete url is triggered and order don't have status PurchaseCompleted in Collectors system - redirect customer to checkout again.
  • Fix - Swap storing of billing and shipping addresses for B2B orders.
0.5.1
  • Tweak - Add function for making all product id/sku’s unique before sending cart data to Collector.
  • Fix - Don’t try to add invoice fee to WC order if no invoice fee product exist (caused 500 error when finalizing order in WC).
0.5.0
  • Tweak - Adds support for create order fallback on failed checkout form submissions.
  • Fix - Change notificationUri to use get_home_url() to support callbacks for WP installed in a subfolder.
0.4.1
  • Fix - Send product variant ID as SKU if no SKU is set in WooCommerce. WC function get_sku() returns main product SKU if on one exists in variant. This causes error in Collector Checkout.
0.4.0
  • Tweak - Improved handling of returned customer data to avoid issues when submitting form/creating order in WooCommerce.
  • Tweak - Send email to admin if customer address is missing from returned address data from Collector.
  • Tweak - Store org no as a separate post meta field and display it in WooCommerce order overview.
  • Fix - Improved check if Collector is the selected gateway (for correct body class).
0.3.4
  • Fix - Prevent order status to be changed to On hold if thankyou page is reloaded and Collector sessions aren't deleted properly.
  • Tweak - Store public token in order to be used when displaying Collector Checkout iframe on thankyou page.
0.3.3
  • Fix - Round shipping cost to only send it to Collector with 2 decimals.
  • Fix - Added support for anonymous card purchases.
  • Fix - Added collector body class on page load if collector is the default gateway.
  • Fix - Fixed variable product SKU being incorrect.
  • Fix - Added error message on checkout page if get public token fails.
0.3.2
  • Fix - Fixed how we detect if we are on thank you page.
  • Fix - Removed default value from JS for IE compatability.
0.3.1
  • Tweak - Added check to only run order management on Collector orders.
  • Fix - Fixed so checkout wouldn't be duplicated when switching between B2B & B2C.
0.3.0
  • First release on wordpress.org.