Changelog

Changelog

1.7.1
  • Fix - Improvement in check that current Avarda session step can be updated before sending update request. Solves potential issue with deleted/missing payment session.
  • Fix - Solve issue with fee amount and fee tax amount in activate order request.
1.7.0
  • Feature - Adds last 15 requests to Avarda that had an API error and display them on the WooCommerce status page. These will also be in the status report that you can send to Krokedil for support tickets.
  • Fix - Do not try to make update payment session request to Avarda if session is in redirected to payment method state.
1.6.2
  • Tweak - Adds functionality to enable custom payment method names. Can be filtered/tweaked via aco_order_set_payment_method_title.
  • Tweak - Set orderReference on init call to Avarda when Woo order is vailable (used for redirect flow).
  • Tweak - Move enqueue of JS and CSS to assets class.
  • Tweak - Only run wp_localize_script & wp_enqueue_script if ACO is used. Results in Avarda purchase session only created if Avarda Checkout is about to be displayed.
  • Tweak - Move maybeChangeToACO JS function into separate utility JS file.
  • Fix - Fix bug related to "Avarda JWT token issue" error message displayed in checkout. Could happen if checkout flow settings wasn't saved in plugin settings page.
1.6.1
  • Fix - Confirm that the JWT token used in frontend is the same as the one stored in backend when sending session updates to Avarda.
1.6.0
  • Tweak - Move update request to Avarda from ajax function to woocommerce_after_calculate_totals.
  • Tweak - Improve request class logic.
  • Tweak - Improve error message notice display in checkout.
  • Tweak - Query orders 5 days back in confirm_order sequence.
  • Tweak - Remove wc_print_notices in template files. Not needed anymore. WooCommerce handles this.
  • Tweak - Callback notifications now handled 2 minutes after purchase if needed.
1.5.2
  • Tweak - Logging improvements.
1.5.1
  • Fix - Send correct data to customer city & country for redirect flow.
1.5.0
  • Feature - Adds support for pay for order logic. Merchant can now create an order in admin and send a pay link to a customer, where they can finish the payment using Avarda Checkout.
  • Feature - Adds support for redirect checkout flow. Regular Woo checkout page is used and Avarda Checkout is instead rendered on order recipt page.
  • Tweak - Adds compatibility support with Woo Carrier Agents plugin.
  • Tweak - Logging improvements.
  • Fix - Redirects customer to thankyou page directly instead of rendering Avarda Checkout and then redirecting customer. Avoids potential issues if customer is redirected back from 3DS after Avarda session time expired.
1.4.2
  • Tweak - Adds helper function get_tax_rate and get_item_tax_amount to improve tax calculation for fees in order management.
  • Fix - Unset session and trigger reload of checkout page if GET request in process_payment function fails (usually when Avarda session has timed out).
  • Fix - Use billing address data if shipping address doesn't exist. Fixes issue where shipping first and last name might be missing when order should be created in Woo.
1.4.1
  • Fix - Creates a new Avarda session if purchase_id has state TimedOut. Avoids issue when customer don't finalize purchase under 1 hour.
1.4.0
  • Enhancement - Adds filter aco_locate_template to be able to load ACO checkout template from other plugins.
  • Enhancement - Adds hook aco_wc_confirm_avarda_order in confirmation step.
  • Enhancement - Adds payment gateway logo displayed in checkout.
  • Tweak - Stores _avarda_payment_method_fee if returned from Avarda.
  • Tweak - Adds calc_shipping_country, calc_shipping_state and calc_shipping_postcode as standard checkout fields (that should not be displayed in checkout when ACO is the selected payment method).
  • Tweak - Moves add_extra_checkout_fields function to aco-functions file. Makes it easier to use remove_cation if checkout design modifications is performed via separate plugin/theme.
  • Tweak - Adds logging to update Avarda order ajax request. For easier trouble shooting.
  • Fix - Saves all Avarda payment info (JWT token and purchase ID) in the same WC session (aco_wc_payment_data). To avoid updating different sessions in frontend and backend.
1.3.0
  • Tweak - Create new purchase ID if customer changes currency or language during ongoing session.
1.2.3
  • Enhancement - Adds separate filters for create (aco_create_args) and update (aco_update_args) requests sent to Avarda.
1.2.2
  • Fix - Save company name correctly to WooCommerce order for B2B purchases.
1.2.1
  • Fix - Floating point precision fix (many decimals sent to Avarda) for refund requests.
1.2.0
  • Tweak - Standard Woo checkout fields check improvement.
  • Tweak - Adds filter aco_ignored_checkout_fields to be able to modify the checkout form fields that should not be displayed on the Avarda Checkout page.
  • Fix - Adds JWT token time expiry check.
  • Fix - Floating point precision fix (many decimals sent to Avarda) for refund requests.
1.1.3
  • Fix - Save Billing company name correct in WooCommerce order for B2B purchases.
1.1.2
  • Fix - Improvement of previous fix where to many decimals might get sent in prices to Avarda.
1.1.1
  • Tweak - Bumped required PHP version to 7.0.
  • Fix - Solved issue with to many decimals sent to Avarda (could happen in certain dev environments). Change from round to number_format.
1.1.0
  • Feature - Adds support for sending in termsAndConditionsUrl to Avarda (if set in WooCommerce).
  • Tweak - Changed Initialize checkout request endpoint to /api/partner/payments/.
  • Tweak - Adds request_url to logging.
1.0.1
  • Tweak - Added stack trace to logger.
  • Tweak - Reduce the amount of update requests in checkout.
  • Fix - Delete current purchase id stored in Woo session if GET or PUT request to Avarda fails.
1.0.0
  • Tweak - Tweak WC checkout form submission logic. The plugin is no longer reliant on a hashchange to send beforeSubmitContinue reponse to Avarda.
  • Tweak - Adds logging to logfile from frontend actions in checkout (during payment completion).
  • Tweak - Don't load checkout scripts on thankyou page.
0.2.0
  • Enhancement - Added support for server side callback url. Handles order status control better for payments where customer not returning to shop after completed Card/Swish payments.
  • Tweak - Increased timeout time to 10 seconds in request to Avarda.
  • Tweak - Move Woo order confirmation process to separate class.
  • Fix - Don't make cancel or activate requests if the WooCommerce order hasn't been paid for.
0.1.9
  • Enhancement - Added Swedish translation.
0.1.8
  • Enhancement - Avarda payment method title is added to the WooCommerce order.
  • Enhancement - Added support for displaying the languages Norwegian and Danish in Avarda checkout.
  • Enhancement - WooCommerce order number is now saved as the order reference in AvardaOnline.
  • Fix - Fix for validating order correct in checkout.
0.1.7
  • Fix - Load correct javascript checkout file depending on if plugin is in testmode or not.
  • Fix - Delete request token transient when credentials is changed.
0.1.6
  • Tweak - Initialize payment request is using the Avarda legacy endpoint.
  • Enhancement - Trigger event when Avarda Checkout form is loaded on checkout page.
0.1.5
  • Enhancement - Support for Swedish, Finnish and English language in the checkout.
0.1.4
  • Enhancement - Prevent doing update request when payment has state Completed or TimedOut.
0.1.3
  • Fix - Fix for extra checkout fields not showing up on checkout page.
0.1.2
  • Feature - Added support for customizing the Avarda Checkout through a filter.
  • Fix - Fix for endless spinning wheel at checkout if something went wrong in Avarda.
  • Tweak - Change the way plugin is fetching data from payment status request.
  • Enhancement - Initialize new payment at checkout if current payment timed out.
0.1.1
  • Tweak - Updated readme file.
0.1.0
  • Initial release.