|
@@ -124,4 +124,17 @@ class TestRefillYl extends TestCase
|
|
|
$resp = $provider->notify($params);
|
|
|
}
|
|
|
|
|
|
+ public function testXinhengyangnew()
|
|
|
+ {
|
|
|
+// $provider = $this->getProvider('xinhengyangnew');
|
|
|
+// $resp = $provider->balance();
|
|
|
+// $resp = $provider->add(13699279618, mtopcard\ChinaMobileCard, 30, ['order_sn' => $this->make_sn()]);
|
|
|
+// $resp = $provider->query(['order_sn' => '98351648200827982694']);
|
|
|
+
|
|
|
+ $body = '{"mchid":"200065","msg":"充值失败","oid":"1000432223966","orderid":"98351648200827982694","price":"28.770","sign":"f3364cabace651f55f464aa5c6fa2d0b","status":"2","voucher":""}';
|
|
|
+ $params = json_decode($body, true);
|
|
|
+ $provider = $this->getProvider('xinhengyangnew', 'RefillCallBack');
|
|
|
+ $ret = $provider->verify($params);
|
|
|
+ $resp = $provider->notify($params);
|
|
|
+ }
|
|
|
}
|