· 4 years ago · Nov 05, 2020, 06:56 PM
1 /**
2 * Генерирует сигнатурный ключ для формы оплаты
3 * @return string
4 */
5 public function getFormSign() {
6 $merchant_id = self::$config['payment'][$this->method_id]['api']['merchant_id'];
7 $secret_key = self::$config['payment'][$this->method_id]['api']['secret_key'];
8
9 return md5($merchant_id.':'.$this->sum.':'.$secret_key.':'.$this->order_id);
10 }