From 7ea806614b18fc21dad7feeec90fd6f689027ac4 Mon Sep 17 00:00:00 2001 From: Lito Date: Mon, 5 Oct 2020 17:36:25 +0200 Subject: [PATCH] Set ConsumerLanguage and MerchantName as optional parameters. Related #26 --- src/Redsys/Tpv/Tpv.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Redsys/Tpv/Tpv.php b/src/Redsys/Tpv/Tpv.php index dbe8462..ad972d5 100644 --- a/src/Redsys/Tpv/Tpv.php +++ b/src/Redsys/Tpv/Tpv.php @@ -19,12 +19,13 @@ class Tpv protected $option_prefix = 'Ds_Merchant_'; protected $o_required = array( - 'Environment', 'Currency', 'Terminal', 'ConsumerLanguage', - 'MerchantCode', 'Key', 'SignatureVersion', 'MerchantName' + 'Environment', 'Currency', 'Terminal', + 'MerchantCode', 'Key', 'SignatureVersion' ); protected $o_optional = array( - 'UrlOK', 'UrlKO', 'TransactionType', 'MerchantURL', 'PayMethods', 'Titular' + 'MerchantName', 'ConsumerLanguage', 'UrlOK', 'UrlKO', + 'TransactionType', 'MerchantURL', 'PayMethods', 'Titular' ); protected $environment = '';