diff --git a/src/Message/CompletePurchaseResponse.php b/src/Message/CompletePurchaseResponse.php index 33a908b..28d8ebc 100644 --- a/src/Message/CompletePurchaseResponse.php +++ b/src/Message/CompletePurchaseResponse.php @@ -51,8 +51,7 @@ public function getCustomFields() { $fields = array_filter([ 'Shp_TransactionId' => $this->getTransactionId(), - 'Shp_Client' => $this->getClient(), - 'Shp_Currency' => $this->getCurrency(), + 'Shp_Client' => $this->getClient() ]); ksort($fields); @@ -87,7 +86,7 @@ public function getTransactionId() public function getCurrency() { - return $this->data['Shp_Currency']; + return $this->data['OutSumCurrency'] ?? ''; } /** diff --git a/src/Message/PurchaseRequest.php b/src/Message/PurchaseRequest.php index d7337c1..bb66467 100644 --- a/src/Message/PurchaseRequest.php +++ b/src/Message/PurchaseRequest.php @@ -20,9 +20,9 @@ public function getData() return [ 'InvId' => $this->getInvId(), - 'MrchLogin' => $this->getPurse(), + 'MerchantLogin' => $this->getPurse(), 'OutSum' => $this->getAmount(), - 'Desc' => $this->getDescription(), + 'Description' => $this->getDescription(), 'IncCurrLabel' => $this->getCurrencyLabel(), 'OutSumCurrency' => $this->getCurrency(), 'SignatureValue' => $this->generateSignature(), @@ -57,8 +57,7 @@ public function getCustomFields() { $fields = array_filter([ 'Shp_TransactionId' => $this->getTransactionId(), - 'Shp_Client' => $this->getClient(), - 'Shp_Currency' => $this->getCurrency() + 'Shp_Client' => $this->getClient() ]); ksort($fields);