Skip to content

Commit

Permalink
Merge branch 'hotfix/2.13.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
hipaybot committed Feb 25, 2021
2 parents 520b87c + 0816c44 commit 547829e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## Version 2.13.1

- **Fix** : recipient info parameter in order

## Version 2.13.0

- **Add** : Hosted Page v2 option for credit card on HostedPage
Expand Down
Expand Up @@ -75,10 +75,8 @@ protected function mapRequest(&$customerBillingInfo)
$customerBillingInfo->zipcode = $this->invoice->postcode;
$customerBillingInfo->country = $this->country->iso_code;
$customerBillingInfo->phone = $this->getPhone();

$customerBillingInfo->state = ($this->deliveryState) ? $this->deliveryState->name : '';
$customerBillingInfo->recipientinfo = ($this->store->name && is_array($this->store->name)) ?
$this->store->name[array_key_first($this->store->name)] : $this->store->name;
$customerBillingInfo->recipientinfo = $this->store->name;
}

/**
Expand Down
Expand Up @@ -54,8 +54,7 @@ protected function mapRequest(&$customerHippingInfo)
$customerHippingInfo->shipto_country = $this->deliveryCountry->iso_code;
$customerHippingInfo->shipto_phone = $this->getPhone();
$customerHippingInfo->shipto_state = ($this->deliveryState) ? $this->deliveryState->name : '';
$customerHippingInfo->shipto_recipientinfo = ($this->store->name && is_array($this->store->name)) ?
$this->store->name[array_key_first($this->store->name)] : $this->store->name;
$customerHippingInfo->shipto_recipientinfo = $this->store->name;
$customerHippingInfo->shipto_msisdn = isset($this->delivery->phone_mobile) ? $this->delivery->phone_mobile : '';
$customerHippingInfo->shipto_gender = "U";
}
Expand Down
2 changes: 1 addition & 1 deletion src/hipay_enterprise/hipay_enterprise.php
Expand Up @@ -38,7 +38,7 @@ public function __construct()

$this->name = 'hipay_enterprise';
$this->tab = 'payments_gateways';
$this->version = '2.13.0';
$this->version = '2.13.1';
$this->module_key = 'c3c030302335d08603e8669a5210c744';
$this->ps_versions_compliancy = ['min' => '1.6', 'max' => _PS_VERSION_];
$this->currencies = true;
Expand Down

0 comments on commit 547829e

Please sign in to comment.