File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,15 +128,15 @@ public function getNotify() {
128128 $ this ->errMsg = 'Payment notification forbidden access. ' ;
129129 return false ;
130130 }
131- if (empty ($ notifyInfo ['sign ' ]) || !( $ sign = $ notifyInfo [ ' sign ' ]) ) {
131+ if (empty ($ notifyInfo ['sign ' ])) {
132132 Tools::log ('Payment notification signature is missing. ' . var_export ($ notifyInfo , true ), 'ERR ' );
133133 $ this ->errCode = '403 ' ;
134134 $ this ->errMsg = 'Payment notification signature is missing. ' ;
135135 return false ;
136136 }
137137 $ data = $ notifyInfo ;
138138 unset($ data ['sign ' ]);
139- if ($ sign !== Tools::getPaySign ($ data , $ this ->partnerKey )) {
139+ if ($ notifyInfo [ ' sgin ' ] !== Tools::getPaySign ($ data , $ this ->partnerKey )) {
140140 Tools::log ('Payment notification signature verification failed. ' . var_export ($ notifyInfo , true ), 'ERR ' );
141141 $ this ->errCode = '403 ' ;
142142 $ this ->errMsg = 'Payment signature verification failed. ' ;
You can’t perform that action at this time.
0 commit comments