Exemple #1
0
 /**
  * @param int $transactionExternalId id транзакции (в RuRuPay)
  *
  * @return Soap\TransactionStatus
  * @throws Exception
  */
 public function getTransactionStatus($transactionExternalId)
 {
     $signature = $this->signer->sign([$transactionExternalId, $this->partnerId]);
     $result = $this->soapService->GetTransactionStatus(new Soap\GetTransactionStatus($transactionExternalId, $this->partnerId, $signature))->GetTransactionStatusResult;
     //        $this->signer->verify($result->Signature, [
     //        ]);
     return $result;
 }
Exemple #2
0
 /**
  * @param Response\Data\AbstractCancelData|Response\Data\AbstractPurchaseData $bodyData
  *
  * @return null
  */
 private function calcSignature($bodyData)
 {
     $signatureParams = ['ErrorCode' => $this->errorCode, 'ErrorDescription' => $this->errorDescription] + (array) $bodyData;
     if ($bodyData) {
         $signatureParams['date'] = $bodyData->date->format('Y-m-d H:i:s');
     }
     return $this->signer->sign($signatureParams);
 }