|
@@ -3265,10 +3265,17 @@ class TestRefill extends TestCase
|
|
|
|
|
|
public function testHuiyuan()
|
|
|
{
|
|
|
-// $provider = $this->getProvider('huiyuan');
|
|
|
+ $provider = $this->getProvider('huiyuan');
|
|
|
// $resp = $provider->balance();
|
|
|
// $resp = $provider->add(15811535608, 4, 10, ['order_sn' => $this->make_sn(), 'regin_no' => 18]);
|
|
|
// $resp = $provider->query(['order_sn' => '25551683853847719519']);
|
|
|
+
|
|
|
+ $content = 'agent_id=2145738&bill_id=25551683853847719519&jnet_bill_no=C230512588496314&par_price=10.0000&purchase_amt=10.3600&bill_charge_time=20230512092120&bill_status=%B3%C9%B9%A6&bill_data_info=C230512588496314%3a1&sign=b0c81c3b9b1ce25ed76299069df4be82';
|
|
|
+ $content = urldecode($content);
|
|
|
+ $params = $provider->decode_tag($content);
|
|
|
+ $provider = $this->getProvider('huiyuan', 'RefillCallBack');
|
|
|
+ $ret = $provider->verify($params);
|
|
|
+ $resp = $provider->notify($params);
|
|
|
}
|
|
|
|
|
|
public function testDezhi_yi()
|