Omnipay\WechatPay\GatewayTest::testCompletePurchase PHP Метод

testCompletePurchase() публичный Метод

    public function testCompletePurchase()
    {
        $options = array('request_params' => array('appid' => '123456', 'mch_id' => '789456', 'result_code' => 'SUCCESS'));
        /**
         * @var CompletePurchaseResponse $response
         */
        $response = $this->gateway->completePurchase($options)->send();
        $this->assertFalse($response->isSuccessful());
    }