Skip to content

Commit

Permalink
Merge pull request #3 from limegrow/releases/v3.1.0
Browse files Browse the repository at this point in the history
Bump v3.1.0
  • Loading branch information
olegisk authored May 23, 2021
2 parents 38c4489 + 7c64c49 commit c828aee
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
## [3.1.0] - 2021-05-18
### Added
- Implemented Oney payment method
- Add `CH_AUTHENTICATION_INFO` parameter

## [3.0.1] - 2021-03-01
### Added
- Add `Device` parameter for Bancontact
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ingenico/ogone-sdk-php",
"description": "Ingenico SDK for PHP",
"version": "3.0.1",
"version": "3.1.0",
"license": [
"OSL"
],
Expand Down
20 changes: 20 additions & 0 deletions lib/Ogone/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
* @method mixed getEcomBilltoPostalStreetLine3()
* @method $this setEcomBilltoPostalStreetNumber($value)
* @method mixed getEcomBilltoPostalStreetNumber()
* @method $this setEcomBilltoTelecomPhoneNumber($value)
* @method mixed getEcomBilltoTelecomPhoneNumber()
* @method $this setEcomBilltoTelecomMobileNumber($value)
* @method mixed getEcomBilltoTelecomMobileNumber()
* @method $this setEcomBilltoCompany($value)
* @method mixed getEcomBilltoCompany()
* @method $this setEcomShiptoPostalCity($value)
* @method mixed getEcomShiptoPostalCity()
* @method $this setEcomShiptoPostalCounty($value)
Expand Down Expand Up @@ -120,6 +126,8 @@
* @method mixed getEcomShiptoTelecomFaxNumber()
* @method $this setEcomShiptoTelecomPhoneNumber($value)
* @method mixed getEcomShiptoTelecomPhoneNumber()
* @method $this setEcomShiptoTelecomMobileNumber($value)
* @method mixed getEcomShiptoTelecomMobileNumber()
* @method $this setEcomShiptoOnlineEmail($value)
* @method mixed getEcomShiptoOnlineEmail()
* @method $this setRefCustomerid($value)
Expand All @@ -128,6 +136,13 @@
* @method mixed getCostcenter()
* @method $this setDevice($value)
* @method mixed getDevice()
* @method $this setEcomShipmethoddetails($value)
* @method mixed getEcomShipmethoddetails()
* @method $this setEcomEstimateddeliverydate($value)
* @method mixed getEcomEstimateddeliverydate()
* @method $this setEcomShipmethodspeed($value)
* @method mixed getEcomShipmethodspeed()
*
* @package Ogone
*/
abstract class AbstractRequest implements Request
Expand Down Expand Up @@ -208,6 +223,11 @@ abstract class AbstractRequest implements Request
'subscription_id', 'sub_amount', 'sub_com', 'sub_orderid', 'sub_period_unit',
'sub_period_number', 'sub_period_moment', 'sub_startdate', 'sub_enddate',
'sub_status', 'sub_comment',
// Limonetik
// @see https://epayments-support.ingenico.com/en/payment-methods/alternative-payment-methods/limonetik
'ecom_billto_postal_name_prefix', 'ecom_billto_telecom_phone_number',
'ecom_billto_telecom_mobile_number', 'ecom_shipto_telecom_mobile_number', 'ecom_shipmethod',
'ecom_shipmethoddetails', 'ecom_estimateddeliverydate', 'ecom_shipmethodspeed'
);

/**
Expand Down
1 change: 1 addition & 0 deletions lib/Ogone/AbstractResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ abstract class AbstractResponse implements Response, \ArrayAccess
'BRAND',
'CARDNO',
'CCCTY',
'CH_AUTHENTICATION_INFO',
'CN',
'COLLECTOR_BIC',
'COLLECTOR_IBAN',
Expand Down
7 changes: 6 additions & 1 deletion lib/Ogone/ParameterFilter/ShaInParameterFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ class ShaInParameterFilter implements ParameterFilter
'ECOM_SHIPTO_TELECOM_FAX_NUMBER',
'ECOM_SHIPTO_TELECOM_PHONE_NUMBER',
'ORDERSHIPCOST', 'ORDERSHIPTAX', 'ORDERSHIPMETH', 'ORDERSHIPTAXCODE',
'DATEIN', 'REF_CUSTOMERREF'
'DATEIN', 'REF_CUSTOMERREF',
// Limonetik
// @see https://epayments-support.ingenico.com/en/payment-methods/alternative-payment-methods/limonetik
'ECOM_BILLTO_POSTAL_NAME_PREFIX', 'ECOM_BILLTO_TELECOM_PHONE_NUMBER',
'ECOM_BILLTO_TELECOM_MOBILE_NUMBER', 'ECOM_SHIPTO_TELECOM_MOBILE_NUMBER', 'ECOM_SHIPMETHOD',
'ECOM_SHIPMETHODDETAILS', 'ECOM_ESTIMATEDDELIVERYDATE', 'ECOM_SHIPMETHODSPEED'
);

public function filter(array $parameters)
Expand Down
1 change: 1 addition & 0 deletions lib/Ogone/ParameterFilter/ShaOutParameterFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ShaOutParameterFilter implements ParameterFilter
'BRAND',
'CARDNO',
'CCCTY',
'CH_AUTHENTICATION_INFO',
'CN',
'COLLECTOR_BIC',
'COLLECTOR_IBAN',
Expand Down
10 changes: 10 additions & 0 deletions lib/Ogone/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,16 @@ class Validator
'size' => 20,
],

// Limonetik
// @see https://epayments-support.ingenico.com/en/payment-methods/alternative-payment-methods/limonetik
'ecom_shipmethod' => [
'format' => self::TYPE_ALPHANUMERIC
],
'ecom_shipmethoddetails' => [
'format' => self::TYPE_ALPHANUMERIC,
'size' => 50,
],

// 2.3 Order details
// Optional integration data: Order data ("ITEM" parameters).
// https://payment-services.ingenico.com/int/en/ogone/support/guides/integration%20guides/additional-data/order-data
Expand Down

0 comments on commit c828aee

Please sign in to comment.