getProvider('cangbu','RefillCallBack'); $ret = $provider->verify($params); $this->assertTrue($ret,'Verify is OK'); $provider->notify($params); } public function testWangliantx() { $provider = $this->getProvider('wangliantx','RefillCallBack'); // $xml = '7DD563D3C30029307366410666128.6530.0%E4%BB%A3%E7%90%86%E8%BE%BD%E5%AE%81%E7%A7%BB%E5%8A%A830%E5%85%838418840687878184059987137951908562'; // $resp = $this->xmlToArray($xml); // $params['userid'] = '10073664'; $params['sporderid'] = '7017570687879655920102'; $params['orderid'] = '02FDE541DBDB482E73664'; $params['resultno'] = '1'; $params['merchantsubmittime'] = '20211018134203'; $params['ordermoney'] = '95.2'; $params['verifystring'] = '0187e9b01a1dd25ad3dc0c5fbc7608b1'; $params['sign'] = '9b9304a043167905fe88052735c57c2d'; $params['supnumber'] = '11010336K132110181341020247862'; $ret = $provider->verify($params); $this->assertTrue($ret,'Verify is OK'); $provider->notify($params); } public function testQianqian() { $providers = $this->getProvider('qianqian', 'RefillCallBack'); $datas = '{"orderNo":"F2110181448034576979","status":"003","consumerNo":"0687020687883683049582","voucherNo":"","mobile":"18976761665"}'; $datas = json_decode($datas,true); $resp = $providers->notify($datas); } public function testHuafutong() { $providers = $this->getProvider('huafutong', 'RefillCallBack'); $datas = '{"PostData":"GNY6FW+xi22du+5JHHM9iJ91YxgDJr6lWtPYNSf8m6KqRwzDFhqu828F\/gnCzQB7iZ0khqbP\/Brhbqpw252PnCCLr0F0hwpNhGlZXuqCc9o+QZY7oGJSIA45mkshDn8C"}'; $datas = json_decode($datas,true); $resp = $providers->notify($datas); } public function testXianghongrui() { $provider = $this->getProvider('xianghongrui'); $provider->xxx(''); } public function testYunlingfs() { $provider = $this->getProvider('yunlingfs'); $provider->query(['order_sn' => '7861850691582899658106']); } }