Ejemplo n.º 1
0
 /**
  * Sestaveni retezce pro podpis vysledku stavu platby.
  *
  * @param float $goId - identifikator prijemce prideleny GoPay
  * @param string $productName - popis objednavky zobrazujici se na platebni brane
  * @param float $totalPriceInCents - celkova cena objednavky v halerich
  * @param string $currency - identifikator meny platby
  * @param string $orderNumber - identifikator objednavky u prijemce
  * @param float $parentPaymentSessionId - id puvodni platby pri opakovane platbe
  * @param int $preAuthorization - jedna-li se o predautorizovanou platbu true => 1, false => 0, null=>""
  * @param int $recurrentPayment - jedna-li se o opakovanou platbu true => 1, false => 0, null=>""
  * @param string $result - vysledek volani (CALL_COMPLETED / CALL_FAILED)
  * @param string $sessionState - stav platby - viz GopayHelper
  * @param string $sessionSubState - podstav platby - detailnejsi popis stavu platby
  * @param string $paymentChannel - pouzita platebni metoda
  * @param string $secureKey - kryptovaci klic prideleny prijemci, urceny k podepisovani komunikace
  * @return string retezec pro podpis
  */
 public static function concatPaymentStatus($goId, $productName, $totalPriceInCents, $currency, $orderNumber, $recurrentPayment, $parentPaymentSessionId, $preAuthorization, $result, $sessionState, $sessionSubState, $paymentChannel, $secureKey)
 {
     $preAuthorization = GopayHelper::castBooleanForWS($preAuthorization);
     $recurrentPayment = GopayHelper::castBooleanForWS($recurrentPayment);
     return $goId . "|" . trim($productName) . "|" . $totalPriceInCents . "|" . $currency . "|" . trim($orderNumber) . "|" . $recurrentPayment . "|" . $parentPaymentSessionId . "|" . $preAuthorization . "|" . $result . "|" . $sessionState . "|" . $sessionSubState . "|" . $paymentChannel . "|" . $secureKey;
 }