src/Wechat.php
public function getPayment()
    {
        if (!self::$_payment instanceof Factory)
        {
            self::$_payment = Factory::payment(Yii::$app->params['wechatPaymentConfig']);
        }

        return self::$_payment;
    }
public function getPayment()
    {
        if (!self::$_payment instanceof Factory)
        {
            self::$_payment = Factory::payment(Yii::$app->params['wechatPaymentConfig']);
        }

        return self::$_payment;
    }
public function getPayment ( ) { if ( ! self :: $ _payment instanceof Factory ) { self :: $ _payment = Factory :: payment ( Yii :: $ app -> params [ 'wechatPaymentConfig' ] ) ; } return self :: $ _payment ; }
获取 EasyWeChat 微信支付实例

@return Factory
获取 EasyWeChat 微信支付实例