dever 3 anni fa
parent
commit
7652dd6bee
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      lib/Yspay.php

+ 6 - 0
lib/Yspay.php

@@ -80,6 +80,12 @@ class Yspay extends Core
 			if (isset($this->config['prefix']) && $this->config['prefix']) {
 				$input[$key] = str_replace($this->config['prefix'], '', $input[$key]);
 			}
+			if (isset($input['billPayment'])) {
+				$input['billPayment'] = json_decode($input['billPayment'], true);
+				if (isset($input['billPayment']['status'])) {
+					$input['status'] = $input['billPayment']['status'];
+				}
+			}
 			if (!isset($input['status'])) {
 				echo 'FAILED';die;
 			}