App\Http\Controllers\AccountGatewayController::getWePayUpdateUri PHP Method

getWePayUpdateUri() protected method

protected getWePayUpdateUri ( $accountGateway )
    protected function getWePayUpdateUri($accountGateway)
    {
        if ($accountGateway->gateway_id != GATEWAY_WEPAY) {
            return null;
        }
        $wepay = Utils::setupWePay($accountGateway);
        $update_uri_data = $wepay->request('account/get_update_uri', ['account_id' => $accountGateway->getConfig()->accountId, 'mode' => 'iframe', 'redirect_uri' => URL::to('/gateways')]);
        return $update_uri_data->uri;
    }