Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sessan committed Mar 24, 2023
1 parent fed5bb1 commit 6f48bb3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
40 changes: 20 additions & 20 deletions bambora-online-classic/bambora-online-classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Bambora Online ePay
* Plugin URI: https://www.bambora.com
* Description: Bambora Online ePay payment gateway for WooCommerce
* Version: 5.3.3
* Version: 5.4.0
* Author: Bambora Online
* Author URI: https://www.bambora.com
* Text Domain: bambora-online-classic
Expand All @@ -14,7 +14,7 @@


define( 'BOCLASSIC_PATH', dirname( __FILE__ ) );
define( 'BOCLASSIC_VERSION', '5.3.3' );
define( 'BOCLASSIC_VERSION', '5.4.0' );

add_action( 'plugins_loaded', 'init_bambora_online_classic', 0 );

Expand Down Expand Up @@ -427,20 +427,20 @@ public function payment_fields() {
protected function create_invoice( $order, $minorunits ) {
if ( $this->enableinvoice == 'yes' ) {

$invoice['customer']['emailaddress'] = $order->get_billing_email();
$invoice['customer']['firstname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_first_name() );
$invoice['customer']['lastname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_last_name() );
$invoice['customer']['address'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_address_1() );
$invoice['customer']['zip'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_postcode() );
$invoice['customer']['city'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_city() );
$invoice['customer']['country'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_country() );

$invoice['shippingaddress']['firstname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_first_name() );
$invoice['shippingaddress']['lastname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_last_name() );
$invoice['shippingaddress']['address'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_address_1() );
$invoice['shippingaddress']['zip'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_postcode() );
$invoice['shippingaddress']['city'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_city() );
$invoice['shippingaddress']['country'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_country() );
$invoice['customer']['emailaddress'] = $order->get_billing_email();
$invoice['customer']['firstname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_first_name() );
$invoice['customer']['lastname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_last_name() );
$invoice['customer']['address'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_address_1() );
$invoice['customer']['zip'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_postcode() );
$invoice['customer']['city'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_city() );
$invoice['customer']['country'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_billing_country() );

$invoice['shippingaddress']['firstname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_first_name() );
$invoice['shippingaddress']['lastname'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_last_name() );
$invoice['shippingaddress']['address'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_address_1() );
$invoice['shippingaddress']['zip'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_postcode() );
$invoice['shippingaddress']['city'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_city() );
$invoice['shippingaddress']['country'] = Bambora_Online_Classic_Helper::json_value_remove_special_characters( $order->get_shipping_country() );

$invoice['lines'] = $this->create_invoice_order_lines( $order, $minorunits );

Expand Down Expand Up @@ -881,17 +881,17 @@ protected function add_surcharge_fee_to_order( $order, $params ) {
'tax_data' => array(),
'tax' => 0,
);
$fee_item = new WC_Order_Item_Fee();
$fee_item->set_props( array(
$fee_item = new WC_Order_Item_Fee();
$fee_item->set_props( array(
'name' => $fee->name,
'tax_class' => $fee->tax_class,
'total' => $fee->amount,
'total_tax' => $fee->tax,
'order_id' => $order->get_id(),
)
);
$fee_item->save();
$order->add_item( $fee_item );
$fee_item->save();
$order->add_item( $fee_item );
$total_incl_fee = $order->get_total() + $fee_amount;
$order->set_total( $total_incl_fee );
}
Expand Down
8 changes: 6 additions & 2 deletions bambora-online-classic/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Contributors: bambora
Tags: woocommerce, woo commerce, payment, payment gateway, gateway, subscription, subscriptions, bambora, epay, integration, woocommerce bambora, woocommerce epay, woocommerce bambora online classic, psp
Requires at least: 4.0.0
Tested up to: 6.1
Stable tag: 5.3.3
Stable tag: 5.4.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
WC requires at least: 3.2
WC tested up to: 7.4
WC tested up to: 7.6

Integrates Bambora ePay payment gateway into your WooCommerce installation.

Expand Down Expand Up @@ -52,6 +52,10 @@ With Bambora ePay for WooCommerce, you are able to integrate the Bambora Online
<a href="https://woocommerce.wpguiden.dk/en/configuration">Click here for more information about **Settings**</a>

== Changelog ==

= 5.4.0 =
* PHP 8, some security changes, remove support for WC below 3.2.

= 5.3.3 =
* Send order instead of order id to WPML.

Expand Down

0 comments on commit 6f48bb3

Please sign in to comment.