|
@@ -319,4 +319,18 @@ class TestRefillYl extends TestCase
|
|
|
$ret = $provider->verify($params);
|
|
|
$resp = $provider->notify($params);
|
|
|
}
|
|
|
+
|
|
|
+ public function testZhenghe()
|
|
|
+ {
|
|
|
+// $provider = $this->getProvider('zhenghe');
|
|
|
+// $resp = $provider->balance();
|
|
|
+// $resp = $provider->add(18500608333, 5, 30, ['order_sn' => $this->make_sn()]);
|
|
|
+// $resp = $provider->query(['order_sn' => '54051648695406464004']);
|
|
|
+
|
|
|
+ $body = '{"szOrderId":"54051648695406464004","fSalePrice":"30.0","szAgentId":"200042","nFlag":"3","szVerifyString":"be8816cd62ad8a36334498ea12b6c86d","szPhoneNum":"18500608333","szRtnMsg":"","nDemo":"30"}';
|
|
|
+ $params = json_decode($body, true);
|
|
|
+ $provider = $this->getProvider('zhenghe','RefillCallBack');
|
|
|
+ $ret = $provider->verify($params);
|
|
|
+ $resp = $provider->notify($params);
|
|
|
+ }
|
|
|
}
|